Upgrading to 1.0.0
Upgrade from the complete 0.43.0 package set using the upgrade procedure.
This is the first stable set and a major transition from 0.x. Pin every selected
@openlup/* package to 1.0.0 together. Core adds catalogue primitives and installed
lookup improvements; Outbox republishes unchanged runtime, exports and SQL;
Platform adds experimental catalogue tools, nine native SQL forwards and optional
subscription admission. Imports and installation apply no SQL or integration activation.
Stable commitments
The stability reference owns SemVer from
1.0.0. The maturity table identifies stable,
experimental and testing subpaths; @experimental symbols within stable subpaths
are excluded from the stable promise. Status, event, reason, command and capability
unions and literal sets are open: additions are minor; keep a default branch for
unknown values. Removal, renaming or narrowing requires a major release. Within
1.x, schema changes are additive expand/backfill; contraction requires a major.
The latest 1.x minor receives fixes including security fixes, with no LTS or
maintenance branches. Installation support is limited to the npm starter,
PostgreSQL and the qualified image under the linked support policy; release
evidence is retained for one year. Consumer evidence is first-party: a demo store
from npm and a production deployment. This preparation claims no executed exact
1.0.0 artifact qualification; require the release's own retained evidence.
Starter applications from 0.43.0
The published 1.0.0 set failed exact-set qualification for starter upgrades; 1.1.0 supersedes it with this migration guide and the cadence widening described in the 1.1.0 upgrade notes. Record qualification only after publication. Applications that did not extract the starter need no owned-file migration.
Prepare a separate target 1.0.0 or 1.1.0 extraction from the selected source archive, with its matching release manifest and lock. The 0.43.0 recipe explains their identity checks; its historical source and inputs are not the target. With the selected target paths and version, use the existing extractor:
node "$target_source/examples/neutral-store/extract.mjs" ./target \
--mode released --set-version "$target_version" \
--source-revision "$target_revision" --manifest "$target_manifest" --lockfile "$target_lock"
Run npm ci in target to install its CLI. Matching target release inputs
are a prerequisite; local candidate checks do not supply released qualification.
Keep this target extraction intact as the source of target bytes. Compare its
owned/ directory with the application's 0.43.0 extraction before editing.
Hold the application-file maintenance window
until migration and verification finish.
Build the normal from and to JSON snapshots from each extraction's
ownership.json: include managed paths except generated, with exact UTF-8
contents. Keep owned paths out of both snapshots except these three new files:
Target-only entry in to.files |
Contents from the target extraction |
|---|---|
owned/quote-shipping.ts |
Application-owned createQuoteShipping composition. |
owned/renewal-policy.ts |
RenewalPolicyInput, RenewalPolicy and the no-op renewalPolicy. |
owned/catalogue.json |
JSON packs input for catalogue:check. |
Omit these paths from from.files; listing them only in to.files uses the
existing CLI creation capability. Do not silently overwrite an existing local
file: plan/apply refuses divergent bytes. Reconcile it explicitly and replan.
All other owned paths remain outside the snapshots.
Before planning, migrate the following existing owned contracts. For a pristine, uncustomized file, take the target extraction's bytes. For a customized file, add the listed members and wiring while preserving local catalogue, policies, copy, theme and other values:
| File | Required change |
|---|---|
owned/store.config.ts |
Supply subscriptionOffers: { classic, sized } on each configuration, using SubscriptionOffers from managed shared/subscription-offer.ts. Each offer supplies days, defaultDays, minimumBaseUnits, maximumUnits, maximumBaseLines, maximumAddonLines and explicit bySku rules containing days and quantities for admitted base, variant and add-on SKUs. Use set/range for those domains; preserve existing cadence and quantity limits. Pass the offers as the second argument to subscriptionEditing; derive offer.cadenceDays with choices(classic.checkoutDays ?? classic.days) and offer.defaultCadenceDays from classic.defaultDays. Keep optional checkoutMinimumBaseUnits, checkoutDays and preferredDays only where your policy needs them. |
owned/subscription-editing.ts |
Accept the second offers: SubscriptionOffers argument, validate each offer against the editor catalogue with assertSubscriptionOffer, and derive editor minima, line limits, quantity maxima and cadence choices from those offers. Include sized.offer: offers.sized; retain local subject, sizing, exclusions and catalogue construction. |
owned/quote-copy.ts |
Export quoteRefusalCopy with the target's refusal-code keys for every configured locale, and isQuoteRefusalCode(code: unknown): code is keyof typeof quoteRefusalCopy.en. Keep the target's own-key allowlist check; translate display values locally without displaying server messages or error details. Retain quoteCopy and embeddedCheckoutBrowserMarkers. |
owned/catalogue.ts |
Import type CatalogProductTypeInput; give the existing definitions array the type CatalogProductTypeInput[] before passing it to createCatalogProductTypeRegistry. This preserves contextual typing of validateContent; keep the local definitions and validation logic. |
Changes to owned/copy.ts display labels and the switch in
owned/demo-seed.ts from subscriptionEditing.minimumBaseUnits to
subscriptionOffers.classic.minimumBaseUnits are optional: the editor minimum
remains available. They are not part of the required migration.
For a 1.1.0 target, also apply the owned retention configuration migration.
Use the installed target CLI from the target extraction, with the existing snapshot inputs:
/path/to/target/node_modules/.bin/openlup upgrade plan --root /path/to/app --from ./from.json --to ./to.json --schema-version 0 --json
/path/to/target/node_modules/.bin/openlup upgrade apply --root /path/to/app --from ./from.json --to ./to.json --schema-version 0 --json
Here 0 is only a file-proof ordinal, valid when both snapshots declare
schema: { "min": 0, "max": 0 }; for an installed database, observe its schema
and supply compatible ranges and ordinal as described in the linked procedure.
Retain both snapshots for interrupted apply/resume; replay applies no changes.
The CLI installs no dependencies. Move to the target extraction's verified lock
for the pristine starter; customized applications regenerate and review their
own lock with exact matching package pins. From the upgraded application
directory, install the lock with npm ci, then run that application's test,
typecheck and build scripts before serving.
Apply the native schema migrations
Apply the complete selected catalogue, including every predecessor and these ordered forwards, before using the new readers or explicitly composed tools:
| Registry slot | Migration | Purpose |
|---|---|---|
| 142 | 20261122100000_catalog_definition_binding.sql |
Immutable definitions, install receipts, tax keys and nullable product type bindings. |
| 143 | 20261122110000_catalog_quantities.sql |
Nullable physical quantities on live SKUs; data conversion is a separate explicit backfill. |
| 144 | 20261122120000_catalog_attributes.sql |
Nullable product/SKU attribute objects and the single rebuildable SKU-keyed projection. |
| 145 | 20261122130000_catalog_variant_axes.sql |
Nullable axes, option values, canonical identity bytes and active-combination uniqueness. |
| 146 | 20261122140000_subscription_price_policy_close_digest.sql |
Preserve the original policy digest across a one-time revision close with closed_from_open. |
| 147 | 20261122150000_catalog_drafts_v2.sql |
Explicit v2 draft admission and resume on the four existing retained draft relations. |
| 148 | 20261122160000_catalog_drafts_v3.sql |
Expand draft admission to v3 publication inputs and ordered operations without executing them. |
| 149 | 20261122170000_offer_policy_readiness_inputs.sql |
Immutable marking provenance and separately captured legacy offer-policy baseline evidence. |
| 150 | 20261122180000_catalog_base_price_writer.sql |
Explicit immediate base-price writes and authoritative immutable command receipts. |
Follow Upgrade the database. Retain the installation
selection that owns your history and construct createPlatformPostgresMigrationRunner
from @openlup/platform/migrations. Inspect status(), review
apply({ dryRun: true }), explicitly call apply(), then confirm no pending paths.
The runner applies only the pending suffix of an exact matching prefix. Preserve
all applied SQL bytes and ledger identities. Module descriptors are sparse
projections, not independent installation chains. An application-owned chain must
prepare compatible forwards against its actual schema/history rather than overlaying
an unrelated baseline. These catalogue additions have no managed-rail twin in this set.
After schema installation, explicitly call installCatalogDefinitions(installExecutor, pack)
with the native migration-owner executor if adopting definitions. Existing products
remain NULL-bound legacy; no mapping is inferred. Keep old definition versions in
code while products reference them. To convert legacy net content, separately drain
backfillCatalogNetContent(installExecutor, { batchSize }) with a positive integer
batch size and migration-owner executor. It converts positive legacy grams exactly
to mass, scale 0 and openlup:g, preserves zero as unknown, never overwrites existing
net content and never infers gross mass. Interrupted batches resume; replay is a no-op.
The migration itself does not backfill. Runtime roles receive no installer/backfill authority.
Old readers ignore the nullable expansions. Existing non-null legacy quantity columns and readers remain in use; new catalogue serving, publication and host migration wiring are not supplied. Attribute objects retain NULL until explicitly provided. They have independent PostgreSQL-rendered text ceilings of 1,048,576 bytes; canonical JSON safety limits measure different bytes. The projection remains owner-only and rebuildable, with no runtime grants. Variant fields remain NULL; no empty combination, legacy digest or inferred identity is manufactured.
Adopt experimental catalogue tools explicitly
New catalogue declarations and added members of existing types since 0.43.0
carry @experimental, including product-type metadata and unit factors, draft
attribute references, the readiness registry observation and policy-close evidence
and refusal values. Only registry_missing_referenced_version is experimental in
READINESS_CODES; the seven established codes remain stable. The
subscriptionPricePolicyRevisionSchema.closedFromOpen shape member is experimental,
as is the corresponding revision DTO member. New CATALOG_MIGRATIONS descriptors
for slots 142–150 are experimental; the five earlier descriptors remain stable.
The existing catalogNamespacedKeySchema, catalogDimensionKeySchema,
catalogQuantityDimensionSchema, catalogQuantitySchema, catalogOptionValueSchema
and catalogProductTypeRefSchema remain stable after moving between source files.
Established catalogue members keep their contracts. The
package changelogs preserve the original fragments verbatim, including former
0.44.0 targets and intermediate checker scopes.
Those targets are superseded by this 1.0.0 set. The final interfaces described here
include the later JSON-only checker integration.
Core's catalog entry adds exact decimal-string/BigInt quantities, canonical units,
comparison and declared-unit conversion. Inexact canonical values refuse without
rounding. Existing identifier schemas are unchanged. The experimental pricing
helpers cataloguePositionNetFromGross and allocateCatalogueDiscountedGrossTotals
preserve integer included-VAT rounding and largest-remainder allocation, with ties
resolved by input position. Compose them with validated money in one currency and
preserve position order. Native integer-conversion errors and refusal messages remain;
existing quote arithmetic and independent invoice verification are unchanged.
Platform's catalog and catalog/contracts entries add readonly pack descriptors,
typed drafts, declarative metadata, structured definition issues and server-derived
definition/manifest digests. Closed authoring shapes and literal reference keys
remain significant. Existing v1 canonical command and receipt bytes are unchanged;
v1 drafts do not admit attribute values. Parse readonly authored drafts through
catalogDraftPayloadSchema.parse before assigning mutable v1 DTOs. The runtime
CATALOG_CONFORMANCE_RULES record is at @openlup/platform/catalog; contracts export
its codes and rule shapes as types only. Definition errors retain
invalid_catalog_type_definition and add the first structured issue.
Attribute validation uses an injected allowlisted batch reference resolver;
malformed values refuse, while missing required values/locales are publication
readiness issues. attribute_storage_too_large identifies the product/SKU owner.
Each projected text slot fits 2,048 UTF-8 bytes, including complete localized maps
and list scalars, regardless of facet/filter flags; otherwise
attribute_projection_text_too_large refuses before SQL. This conservative index
budget is scoped to the qualified 8 KiB-page PostgreSQL profile. Signed decimals
remain strings; trusted writers must check exact numbers before PostgreSQL numeric
coercion. Pure projection preparation supplies no writer or serving switch.
canonicalizeCatalogCombinationV2 derives versioned identity bytes and SHA-256
from installed definitions and complete options. Labels and display order are not
identity. Padded quantity coefficients up to 52 input digits normalize through exact
Core arithmetic; the v1 wire schema keeps its 40-digit coefficient ceiling.
validateCatalogCombinationChangesV2 preserves omitted SKUs/withdrawals and requires
a new SKU for an existing mapped identity change. Handle
combination_identity_integrity_failed for inconsistent authoritative options or
colliding derived digests; incoming mapped changes still report
sku_identity_change_requires_new_sku. The earlier combination_digest_collision
code remains exported. The 10,000-SKU payload bound is separate from configured
product capacity (default 50,000); no combinations are enumerated. A future publisher
must authorize, lock, validate retained facts, enforce incremental capacity and
record immutable history. These helpers supply no publisher or capability activation.
Choose versioned draft readers before authoring
Use createPostgresCatalogDraftStoreV2 and createCatalogDraftHandlerV2 explicitly
for v2 payloads/commands. Original factories retain v1 admission and exact canonical
bytes, fingerprints and receipts. CatalogDraftStored* is the explicit v1/v2 union.
v2 adds typed attributes, publication-readiness checks, resume and complete immediate
positive gross one-time/minimum-one base-price commands. Expected entry ID and
amount are wholly null or wholly set; a zero new amount refuses. Saving incomplete
drafts reports readiness issues and performs no price writes. Resume copies an
abandoned payload into an open revision under retained reservations; earlier
abandonment receipts still replay, and legacy revise on an abandoned head refuses.
For v3, explicitly select createPostgresCatalogDraftStoreV3 and
createCatalogDraftHandlerV3 before authoring. CatalogDraftPublicationStored*
is the additive v1/v2/v3 union. v3 freezes ordered operations, eligibility,
provenance/media claims, shared-content envelopes and derived SKU facts. The
installed validators own opaque content; input claims establish no authority or
external readiness. Saving executes no operation. v3 retains v2's positive,
immediate one-time/minimum-one price boundary, with no scheduling, tier or zero-price
extension. Unknown versions refuse; older versions' bytes are not reinterpreted.
createCatalogCandidateService prepares read-only previews through authorized
injected readers. Its v1 reference resolves immutable revisions, checks the whole
head/document digest, installed/composed definitions and expected publication
identity, then hashes canonical evidence and operations. compareCandidate verifies
the supplied head/digest; missing price validation blocks price-bearing drafts.
Publication must reconstruct and refuse issues inside its own transaction. No
candidate table/cache, publication binding or publisher constructor is added.
Stop v2/v3 authoring before rolling readers back; old latest-record readers refuse newer records. Retain a compatible reader for stored v2/v3 history. The four draft relations retain their transfer order, privacy classification and authoritative history, with no backfill or new relation. No live catalogue, price, subscription, order or delivery fact changes merely by saving a draft.
Compose the experimental base-price writer
After applying the complete native catalogue through position 150, explicitly
compose createCatalogPriceSetupHandler and createPostgresCatalogPriceSetupStore
from @openlup/platform/pricing. These new contracts, schemas, canonical command
serialization, handler/store ports and factories are @experimental. Bind the
store to the same verified human administrator session as the handler authorizer;
imports and installation activate no capability. The managed rail has no twin.
The version 1 command preserves the v2/v3 draft price-operation grammar and exact canonical bytes: immediate positive gross one-time price, minimum quantity one, and wholly-null or wholly-set expected entry ID and amount. Later context, scheduling and list lifecycle require a new command version. SQL derives the actor, serializes the receipt before the price context, compares the expected base and atomically closes/inserts at one statement instant. Preview/apply/readback results are validated. Old price readers keep reading ordinary price entries; the writer changes no agreed subscription money or schedule.
Readiness requires native financial, agreement and audited cohort evidence. Missing proof hard-refuses independently of ordinary readiness reasons. The existing global reason-membership aggregation limit remains: a second invalid SKU may be hidden by an already present aggregate price-shape reason. Preserve the catalogue receipt relation's exact fingerprints, actor metadata and responses with price history during transfer; it is authoritative data, with no customer foreign key or client absorption rule. Rollback means unbinding callers while retaining history and receipts. Correct a price with a later expected-base command; do not delete evidence or downgrade the live database.
Preserve policy and acquisition evidence
Apply schema first, then the updated policy reader. The optional
SubscriptionPricePolicyRevision.closedFromOpen marker preserves the original
digest tuple while serving the shortened half-open window. Legacy inputs keep
canonical bytes. Already-shortened legacy rows that cannot verify refuse with
subscription_price_policy_original_tuple_unverified; no backfill guesses their
original tuple. After a close, code rollback must keep the new verifier: older
readers refuse newly closed revisions. Keep schema, rows and retained history.
This repair supplies no closing command, scheduler or capability activation.
Offer-policy readiness records the existing subscription cohort's legacy policy
pair and default-false fixture marker; future ordinary inserts default to pending
acquisition. Installation records immutable marking-time count, membership
fingerprint and database time, but captures no baseline. Audit the complete legacy
non-fixture cohort, including paused/cancelled rows, before explicitly invoking
commerce_capture_offer_policy_v2_legacy_baseline() through the service SQL boundary.
Capture is parameterless and inserts once; replay returns the original audit.
A zero audit requires genuine empty marking provenance; an originally populated
marking becoming empty still refuses. Never reset a baseline to make a comparison
pass. The experimental base-price writer runs read-only input checks before and after its
provisional prices in the same transaction, propagates hard refusals and retains
ordinary acquisition reasons and governing purchase-order provenance. Transfer
preserves marking/baseline bytes, reconciling only a pristine target marking row.
The host explicitly composes that writer; it reprices or reschedules no agreement.
Update host admission and installed diagnostics
Subscription editor hosts may compose the optional effect-free full-result
admission callback on classic, exact and sized ports. Supply nominal and effective
cadence separately, before pricing/writes including frozen-price edits. Completed
receipt replay precedes mutable admission/limits; fingerprint conflicts refuse.
Omitting the callback preserves behavior. Validate resulting dates in the host.
Fresh quotes, order drafts and editor results accept 1..3660 whole days, using
MAX_CADENCE_DAYS = 3660, a stable export from @openlup/core/subscription.
Applications own offered cadences. Transport, stored data and frozen receipts
retain PostgreSQL integer representation bounds (1..2147483647).
Migration: fresh quotes, drafts, edits, checkout persistence/recovery and native
renewal creation now refuse cadences above 3660; fresh edits also check inherited
cadence. Native renewal creation and starter graduation report
NativeRenewalCadenceError with reason cadence_limit_exceeded and
maximumCadenceDays; expired checkout recreation returns
cadence_limit_exceeded before provider I/O. Completed editor, native draft and
renewal receipts replay before current limits with ownership and fingerprint
checks intact. Replay above 3660 is not guaranteed on checkout-command or
saga-fallback paths that quote before replay. Historical price comparisons use
retained billing facts. No published version admitted cadence above 120 days.
No SQL changes accompany this bound: historical generic SQL bundle/lifecycle
paths retain their 90-day guards, and the starter still refuses configured
cadences above 90 with starter_database_cadence_limit. TypeScript acceptance
alone does not establish database-path acceptance. Starter offer derivation and
activation remain separate.
Optional ReadinessInput.catalogRegistry and CatalogRegistryObservation let a
host provide observed catalogue bindings. Missing/different installed versions
report registry_missing_referenced_version; incomplete row visibility or a NULL
installed digest yields unknown. The observer needs SELECT on both definition
tables with row security inactive; hidden rows do not prove readiness. Compose
createCatalogDefinitionWriteGuard explicitly; no boot hook, installer or existing
store binding is added. Absence of the observation preserves existing behavior.
Installed context lookup resolves reachable declared packages and required Core through Node's npm lookup, including workspace hoisting/links, and checks versions against the owning npm lock. Application scans remain application-only; declaration hits are unverified public-import leads. Inspect installed exports/examples rather than treating a declaration occurrence as import proof. MCP reads accept only the selected package's exact returned path with bounded ordinary-file/realpath checks; Node package self-references refuse instead of presenting checkout code as installed.
Use JSON-only offline catalogue checks
@openlup/platform/catalog/testing is a new Node-only test-support subpath. Use
await runCatalogExtensionConformance(JSON.stringify(subjectData)) or
openlup catalogue check --packs ./owned/catalogue.json --json. The supplied file is
JSON text and is never imported; the installed skeleton is one static JSON fixture.
Earlier module subjects, executable skeletons and callbacks are superseded. Replace
refusal callbacks with observedCode/zeroEffects, reference ports with resolution
rows and retained identity bytes with options. Omit validateContent: requested
application content validation is unavailable (exit 2).
The final checker integrates definitions, exact quantities, v1 drafts, attribute validation/projection and v2 combination fixtures, with deterministic findings and five CLI exits. It checks malformed type references, own-string capability keys and positive bounded pack versions through existing owners. Reference/refusal observations never invoke caller code; fixture-derived identities prove no persisted history. Only explicitly admitted owner input errors become input refusals (1); other owner exceptions reject directly and become CLI 74 with raw errors withheld. Default failure is 74; only tagged JSON parsing yields 64. Integrity codes are not input refusals. Taxonomy, tax, profile and promotion semantics remain pending. An offline PASS supplies no database, installation, publication, host wiring or capability proof. See catalogue extension recipes.
The fulfillment conformance diagnostic now explains that
prepare(providerRef: null) must return selection_required before I/O; the
expected refusal and zero-I/O obligation are unchanged. API snapshot updates can
use validated package fragments as well as the legacy changed-changelog route;
that contributor admission change adds no runtime contract.
Rollback and qualification limits
Reverting application files does not undo SQL or durable effects. The existing released-pair qualification proves only its recorded adjacent pair, selected PostgreSQL 16 profile and retained read/write/replay and subscription-clamp assertions on the unchanged expanded schema. It does not prove a general rollback, adjacent-pair backfill or contraction. Require exact 1.0.0 artifacts and their own qualification evidence before treating them as qualified. New v2/v3 history and closed policy revisions have the reader limits above. Leave additive storage, converted content, immutable install history and offer-policy audit evidence intact.
Authoritative product/SKU fields remain in their existing retained transfer order; managed-to-native mapping fills only absent new fields with NULL and preserves supplied values and other refusals. The attribute projection is rebuildable: capture counts, carry no rows and restore empty. Attribute text/options use the sensitive retained stream; this adds no subject-erasure claim. Managed catalogue twins, publication, serving and restore rebuilding remain absent. The experimental native base-price writer requires the explicit composition described above. No provider, subscription schedule or capability is enabled by these additions.
Known limits carried from 0.43.0
Provider and carrier proof is limited to fake clients, scripted adapters and offline fixtures; no live provider or carrier qualification is claimed. The starter still selects sandbox payments. The native payment rail supports the two reference providers through declarative profiles; a third provider needs a declaration plus its adapter. The supplied portable payment composition covers the reference card provider only; the second reference provider has no supplied portable composition. The included warehouse adapter is a reference example. Imports, declarations, package installation and offline certification activate no integration.
Fulfillment retains local reservations and local finished-picking consumption; provider-held reservations, provider-managed consumption, independent splits, standalone pickup-point/locker execution, native label create/void and provider-side cancellation remain unsupported. Labels are PDF only; reference-adapter label reads remain host-owned. Courier pickup has no provider-reaching port and declared support cannot earn full certification. Snapshot-only stock has no movements. Saved preferences require carrier/service strings even when native provider-selected parcels allow nulls. Native overview data requires a host reader.
Historical contacts, reservations, modes, acceptance proofs and arrival facts are not backfilled. Failed or uncertain dispatch and a lost replacement acknowledgement never authorize blind resubmission. Fulfilled parents need an authorized host workflow for replacement dispatch. Replacement creation/dispatch never confirm arrival: record actual delivery; an undelivered replacement remains outstanding. Delivered observations without admitted tracking references retain status evidence but cannot record arrival or alignment. The monotonic clamp never moves a cycle earlier or stacks deliveries.
Intake uses sequential page numbers, not opaque cursors; polling-only providers refuse webhook intake. Empty collections prove no absence. Human holds, terminal provider exceptions and evidence without usable chronology require manual handling. Native reads refuse missing destination/line snapshots. Replaying incomplete webhook transport metadata may replace polling-enriched nullable reference fields. Resolve missing or conflicting historical associations and evidence through authorized recovery; no inferred parcel, chronology or stock is supplied.
Offline certification checks honestly built fixtures and contract results; deliberate accessor, proxy or overridden-intrinsic manipulation to defeat the caller's own certification is outside its threat model. It is not an attestation of durable host behavior. Absence auto-reopen stays off by default and later dispatch requires explicit due-reopen consumption. Refund creation remains separate; refund evidence does not pause or cancel subscription service. Experimental services remain inert until explicitly composed.
Read the fulfillment execution limits and payment composition boundaries for the named refusals and authorized manual paths.
API changes
@openlup/core/catalog
Added declarations:
// API report diff: not compiled.
export * from "./quantities.js";
export type CatalogQuantityDimension = "mass" | "volume" | "count";
export interface CatalogQuantity {
export type CatalogCanonicalUnit = "openlup:g" | "openlup:ml" | "openlup:piece";
export interface CatalogUnitFactor {
export interface CatalogQuantityUnit {
export type CatalogQuantityCode = "quantity_invalid" | "quantity_cross_dimension" | "quantity_fractional_count" | "quantity_unknown_unit" | "quantity_overflow" | "quantity_not_exactly_representable";
export declare class CatalogQuantityError extends Error {
export declare const CATALOG_CANONICAL_UNITS: Readonly<Record<CatalogQuantityDimension, CatalogCanonicalUnit>>;
export declare const CATALOG_QUANTITY_UNITS: readonly CatalogQuantityUnit[];
export declare function validateCatalogUnitFactor(unit: CatalogQuantityUnit): void;
export declare function parseCatalogQuantity(input: unknown, units?: readonly CatalogQuantityUnit[]): CatalogQuantity;
export declare function canonicalizeCatalogQuantity(input: CatalogQuantity, units?: readonly CatalogQuantityUnit[]): CatalogQuantity;
export declare function compareCatalogQuantities(left: CatalogQuantity, right: CatalogQuantity, units?: readonly CatalogQuantityUnit[]): -1 | 0 | 1;
export declare function convertCatalogQuantity(input: CatalogQuantity, target: string, units?: readonly CatalogQuantityUnit[]): CatalogQuantity;
@openlup/core/pricing
Added declarations:
// API report diff: not compiled.
export declare function cataloguePositionNetFromGross(gross: number, vatRateBps: number): number;
export declare function allocateCatalogueDiscountedGrossTotals(lineTotals: number[], chargedTotal: number): number[];
export * from "./catalogueMoney.js";
@openlup/core/readiness
Added declarations:
// API report diff: not compiled.
export interface CatalogRegistryObservation {
Changed declarations:
// API report diff: not compiled.
export declare const READINESS_CODES: readonly ["OPENLUP_E_PORT_MISSING", "OPENLUP_E_EVENT_UNHANDLED", "OPENLUP_E_EVENT_DUPLICATE", "OPENLUP_E_SCHEDULE_UNBOUND", "OPENLUP_E_SCHEMA_BEHIND", "OPENLUP_E_SET_MISMATCH", "OPENLUP_E_ENV_MISSING", "registry_missing_referenced_version"];
export interface ReadinessInput {
@openlup/platform/catalog/contracts
Added declarations:
// API report diff: not compiled.
export type CatalogAttributeScalarType = {
export type CatalogAttributeValueType = CatalogAttributeScalarType | {
export interface AttributeDefinition {
export interface CatalogAxisDefinition {
export interface CatalogCandidateQuery {
export interface CatalogCandidatePreview {
export interface CatalogCandidateComparison {
export type CatalogConformanceCode = "definition_invalid_shape" | "definition_unknown_field" | "definition_key_invalid" | "definition_version_invalid" | "definition_unit_invalid" | "definition_dimension_invalid" | "definition_net_content_invalid" | "definition_attribute_invalid" | "definition_axis_invalid" | "definition_validator_ref_invalid" | "definition_profile_ref_invalid" | "definition_tax_class_invalid" | "definition_callback_missing" | "definition_duplicate_identity" | "definition_duplicate_unit" | "definition_duplicate_dimension" | "definition_duplicate_net_content_unit" | "definition_unknown_net_content_unit" | "definition_duplicate_choice" | "definition_duplicate_dimension_unit" | "definition_dimension_unit_mismatch" | "definition_net_content_unit_mismatch" | "definition_multiple_net_content_dimensions" | "definition_unit_factor_invalid" | "definition_duplicate_attribute" | "definition_facetable_not_filterable" | "definition_unknown_attribute_unit" | "definition_duplicate_axis" | "definition_unknown_axis_attribute" | "definition_axis_scope_invalid" | "definition_duplicate_enum_value" | "definition_unknown_axis_dimension" | "definition_unknown_tax_class" | "definition_unknown_profile_ref" | "pack_type_namespace_mismatch" | "attribute_projection_text_too_large" | "attribute_storage_too_large" | "attribute_values_invalid" | "attribute_value_invalid" | "attribute_unknown_key" | "attribute_scope_conflict" | "attribute_cardinality_invalid" | "attribute_required_missing" | "attribute_required_locale_missing" | "attribute_reference_unresolved" | "attribute_publication_revision_invalid" | "conformance_subject_invalid" | "conformance_owner_unavailable" | "conformance_refusal_fixture_missing" | "conformance_refusal_fixture_invalid" | "conformance_refusal_fixture_mismatch" | "draft_input_invalid" | "draft_payload_invalid" | CatalogQuantityCode | CatalogCombinationCode;
export interface CatalogConformanceRule {
export interface CatalogDefinitionIssue {
export interface CatalogPackInput {
type Profile<P extends CatalogPackInput> = P extends {
type ProfileKeys<P extends CatalogPackInput> = Profile<P> extends infer R ? R extends {
type ProfileVersions<P extends CatalogPackInput> = Profile<P> extends infer R ? R extends {
type Exact<Input, Shape> = unknown extends Shape ? Input : Input extends (...args: never[]) => unknown ? Input extends Shape ? Input : never : Input extends readonly unknown[] ? Shape extends readonly (infer Item)[] ? {
type Units<T extends CatalogProductTypeInput> = T["units"][number]["code"];
type QuantityIn<T extends CatalogProductTypeInput, Codes extends string> = T["units"][number] extends infer U ? U extends {
type UnitCodesFor<T extends CatalogProductTypeInput, D extends CatalogQuantity["dimension"]> = T["units"][number] extends infer U ? U extends {
type AttributeKeys<T extends CatalogProductTypeInput> = T extends {
type Dimension<T extends CatalogProductTypeInput> = T["dimensions"][number];
type TypedOption<D, T extends CatalogProductTypeInput> = D extends {
type CatalogReadonly<T> = T extends (...args: never[]) => unknown ? T : T extends object ? {
type SelectedOptions<T extends CatalogProductTypeInput, Selected extends string> = [Extract<Dimension<T>, {
type DraftForType<T extends CatalogProductTypeInput, Selected extends string = Dimension<T>["key"]> = Omit<CatalogReadonly<CatalogDraftPayload>, "product" | "skus"> & {
export type CatalogPackDraft<P extends CatalogPackInput, Selected extends string = P["types"][number]["dimensions"][number]["key"]> = P["types"][number] extends infer T ? T extends CatalogProductTypeInput ? DraftForType<T, Selected> : never : never;
type DraftInput = CatalogReadonly<CatalogDraftPayload>;
type Attribute<T extends CatalogProductTypeInput, Scope extends "product" | "variant"> = T extends {
type AttributeValue<V, T extends CatalogProductTypeInput> = V extends {
type RequiredAttribute<A> = A extends {
type TypedAttributes<T extends CatalogProductTypeInput, Scope extends "product" | "variant"> = {
type AttributeField<T extends CatalogProductTypeInput, Scope extends "product" | "variant"> = [RequiredAttribute<Attribute<T, Scope>>] extends [never] ? {
type DraftV2ForType<T extends CatalogProductTypeInput, Selected extends string> = {
type AnyDraftInput = DraftInput | CatalogReadonly<CatalogDraftPayloadV2>;
type SelectedDraft<P extends CatalogPackInput, D extends AnyDraftInput> = P["types"][number] extends infer T ? T extends CatalogProductTypeInput ? D["product"]["type"] extends Pick<T, "key" | "version"> ? (D extends {
type AttributeReferences<V, T extends CatalogProductTypeInput> = V extends {
type AttributeInput<A, T extends CatalogProductTypeInput> = A extends {
type DimensionInput<D, T extends CatalogProductTypeInput> = D extends {
type TypeReferences<P extends CatalogPackInput, T extends CatalogProductTypeInput> = T extends unknown ? string extends T["key"] | Units<T> ? never : number extends T["version"] ? never : T & {
type PackReferences<P extends CatalogPackInput> = string extends P["namespace"] | P["taxClasses"][number]["key"] | ProfileKeys<P> ? never : number extends ProfileVersions<P> ? never : {
export declare function defineCatalogPack<const P extends CatalogPackInput>(pack: P & Exact<P, CatalogPackInput> & PackReferences<P>): CatalogReadonly<P>;
export declare function draftsFor<const P extends CatalogPackInput>(pack: P & (string extends P["types"][number]["key"] ? never : unknown)): <const D extends readonly AnyDraftInput[]>(drafts: D & Exact<D, AnyDraftInput[]> & {
export {};
export interface CatalogDefinitionInstallReceipt {
export interface CatalogDraftPriceOperationV2 {
export type CatalogAttributeScalarValue = string | boolean | CatalogQuantity | {
export type CatalogAttributeValue = CatalogAttributeScalarValue | readonly CatalogAttributeScalarValue[];
export interface CatalogDraftPayloadV2 {
export interface CatalogDraftCommandV2 {
export type CatalogDraftStoredPayload = CatalogDraftPayload | CatalogDraftPayloadV2;
export type CatalogDraftStoredCommand = CatalogDraftCommand | CatalogDraftCommandV2;
export interface CatalogDraftStoredRecord extends CatalogDraftSummary {
export type CatalogDraftStoredApplyResult = {
export type CatalogPublicationJson = null | boolean | number | string | CatalogPublicationJson[] | {
export type CatalogPublicationFacts = {
export type CatalogDraftProvenanceV3 = {
export interface CatalogDraftClaimV3 {
export interface CatalogDraftMediaClaimV3 {
export interface CatalogDraftPublicationSkuV3 {
export interface CatalogDraftMembershipV3 {
export interface CatalogDraftSharedContentV3 {
export type CatalogDraftPublicationOperationV3 = {
export interface CatalogDraftPublicationInputsV3 {
export interface CatalogDraftPayloadV3 extends Omit<CatalogDraftPayloadV2, "schemaVersion" | "product"> {
export interface CatalogDraftCommandV3 {
export type CatalogDraftPublicationStoredPayload = CatalogDraftStoredPayload | CatalogDraftPayloadV3;
export type CatalogDraftPublicationStoredCommand = CatalogDraftStoredCommand | CatalogDraftCommandV3;
export interface CatalogDraftPublicationStoredRecord extends CatalogDraftSummary {
export type CatalogDraftPublicationStoredApplyResult = {
export * from "./attributes.js";
export type { CatalogConformanceCode, CatalogConformanceRule, CatalogDefinitionIssue } from "./catalogConformance.js";
export * from "./catalogPack.js";
export type { CatalogTypeDefinitionV2, CatalogProductTypeInput } from "./productTypes.js";
export type { CatalogDefinitionInstallReceipt } from "./definitionInstall.js";
export type { CatalogCombinationIdentityV2, CatalogCombinationCode, CatalogRetainedCombinationV2, CatalogCombinationChangeV2 } from "./variantAxes.js";
export type { CatalogDraftPriceOperationV2, CatalogAttributeScalarValue, CatalogAttributeValue, CatalogDraftPayloadV2, CatalogDraftCommandV2, CatalogDraftStoredPayload, CatalogDraftStoredCommand, CatalogDraftStoredRecord, CatalogDraftStoredApplyResult } from "./draftV2.js";
export type { CatalogCandidateQuery, CatalogCandidatePreview, CatalogCandidateComparison } from "./candidate.js";
export type { CatalogPublicationJson, CatalogPublicationFacts, CatalogDraftProvenanceV3, CatalogDraftClaimV3, CatalogDraftMediaClaimV3, CatalogDraftPublicationSkuV3, CatalogDraftMembershipV3, CatalogDraftSharedContentV3, CatalogDraftPublicationOperationV3, CatalogDraftPublicationInputsV3, CatalogDraftPayloadV3, CatalogDraftCommandV3, CatalogDraftPublicationStoredPayload, CatalogDraftPublicationStoredCommand, CatalogDraftPublicationStoredRecord, CatalogDraftPublicationStoredApplyResult } from "./draftV3.js";
export type { CatalogQuantity, CatalogQuantityDimension } from "@openlup/core/catalog";
export type CatalogProductTypeInput = Omit<CatalogProductTypeDefinition, "units" | "netContentUnits" | "dimensions"> & {
export interface CatalogTypeDefinitionV2 extends Omit<CatalogProductTypeInput, "validateContent"> {
export interface CatalogCombinationIdentityV2 {
export type CatalogCombinationCode = "axis_not_installed" | "duplicate_axis" | "option_not_selected" | "option_missing" | "option_invalid" | "unit_factor_missing" | "sku_identity_change_requires_new_sku" | "duplicate_combination" | "combination_digest_collision" | "duplicate_sku_id" | "combination_identity_integrity_failed" | "sku_payload_limit" | "product_capacity_exceeded" | "product_capacity_invalid";
export interface CatalogRetainedCombinationV2 {
export interface CatalogCombinationChangeV2 {
Removed declarations:
// API report diff: not compiled.
export type CatalogQuantityDimension = "mass" | "volume" | "count";
export interface CatalogQuantity {
Changed declarations:
// API report diff: not compiled.
export interface CatalogProductTypeDefinition extends CatalogProductTypeRef {
@openlup/platform/catalog/testing
Added declarations:
// API report diff: not compiled.
export interface CatalogAttributeReference {
export interface CatalogAttributeReferenceResolution extends CatalogAttributeReference {
export interface CatalogAttributeReferencePort {
export interface CatalogAttributeInput {
export interface CatalogAttributeProjectionValue {
declare const validatedAttributes: unique symbol;
export type CatalogAttributeValidation = {
export declare function validateCatalogAttributes(definition: CatalogProductTypeInput, input: CatalogAttributeInput, references?: CatalogAttributeReferencePort): Promise<CatalogAttributeValidation>;
export declare function catalogAttributesReadyForPublication(result: CatalogAttributeValidation): boolean;
export {};
export type CatalogAttributeScalarType = {
export type CatalogAttributeValueType = CatalogAttributeScalarType | {
export interface AttributeDefinition {
export interface CatalogAxisDefinition {
export type CreateBundleDraftRequest = {
export type CreateBundleDraftResponse = {
export type UpdateBundleDraftRequest = {
export type UpdateBundleDraftResponse = {
export type BundleComponent = {
export type SetBundleCompositionRequest = {
export type SetBundleCompositionResponse = {
export type SetBundleTargetPriceRequest = {
export type SetBundleTargetPriceResponse = {
export type ArchiveBundleRequest = {
export type ArchiveBundleResponse = {
export type RestoreBundleRequest = {
export type RestoreBundleResponse = {
export type CloneBundleDraftRequest = {
export type CloneBundleDraftResponse = {
export type ActivateBundleRequest = {
export type ActivateBundleResponse = {
export type DeactivateBundleRequest = {
export type DeactivateBundleResponse = {
export type SellableBundle = {
export type SellableBundleComponent = {
export type SellableBundleAvailability = {
export type SellableBundleListResponse = {
export type ListBundlesRequest = {
export type ListBundlesResponse = {
export type BundleSummaryView = {
export type GetBundleRequest = {
export type GetBundleResponse = {
export type BundleDetailView = {
export type BundleAvailabilityView = {
export type BundleHistoryRequest = {
export type BundleHistoryResponse = {
export type PreviewBundlePriceRequest = {
export type PreviewBundlePriceResponse = {
export type BundlePricePreview = {
export interface CatalogCandidateQuery {
export interface CatalogCandidatePreview {
export interface CatalogCandidateComparison {
export type CatalogConformanceCode = "definition_invalid_shape" | "definition_unknown_field" | "definition_key_invalid" | "definition_version_invalid" | "definition_unit_invalid" | "definition_dimension_invalid" | "definition_net_content_invalid" | "definition_attribute_invalid" | "definition_axis_invalid" | "definition_validator_ref_invalid" | "definition_profile_ref_invalid" | "definition_tax_class_invalid" | "definition_callback_missing" | "definition_duplicate_identity" | "definition_duplicate_unit" | "definition_duplicate_dimension" | "definition_duplicate_net_content_unit" | "definition_unknown_net_content_unit" | "definition_duplicate_choice" | "definition_duplicate_dimension_unit" | "definition_dimension_unit_mismatch" | "definition_net_content_unit_mismatch" | "definition_multiple_net_content_dimensions" | "definition_unit_factor_invalid" | "definition_duplicate_attribute" | "definition_facetable_not_filterable" | "definition_unknown_attribute_unit" | "definition_duplicate_axis" | "definition_unknown_axis_attribute" | "definition_axis_scope_invalid" | "definition_duplicate_enum_value" | "definition_unknown_axis_dimension" | "definition_unknown_tax_class" | "definition_unknown_profile_ref" | "pack_type_namespace_mismatch" | "attribute_projection_text_too_large" | "attribute_storage_too_large" | "attribute_values_invalid" | "attribute_value_invalid" | "attribute_unknown_key" | "attribute_scope_conflict" | "attribute_cardinality_invalid" | "attribute_required_missing" | "attribute_required_locale_missing" | "attribute_reference_unresolved" | "attribute_publication_revision_invalid" | "conformance_subject_invalid" | "conformance_owner_unavailable" | "conformance_refusal_fixture_missing" | "conformance_refusal_fixture_invalid" | "conformance_refusal_fixture_mismatch" | "draft_input_invalid" | "draft_payload_invalid" | CatalogQuantityCode | CatalogCombinationCode;
export interface CatalogConformanceRule {
export interface CatalogDefinitionIssue {
export interface CatalogPackInput {
type Profile<P extends CatalogPackInput> = P extends {
type ProfileKeys<P extends CatalogPackInput> = Profile<P> extends infer R ? R extends {
type ProfileVersions<P extends CatalogPackInput> = Profile<P> extends infer R ? R extends {
type Exact<Input, Shape> = unknown extends Shape ? Input : Input extends (...args: never[]) => unknown ? Input extends Shape ? Input : never : Input extends readonly unknown[] ? Shape extends readonly (infer Item)[] ? {
type Units<T extends CatalogProductTypeInput> = T["units"][number]["code"];
type QuantityIn<T extends CatalogProductTypeInput, Codes extends string> = T["units"][number] extends infer U ? U extends {
type UnitCodesFor<T extends CatalogProductTypeInput, D extends CatalogQuantity["dimension"]> = T["units"][number] extends infer U ? U extends {
type AttributeKeys<T extends CatalogProductTypeInput> = T extends {
type Dimension<T extends CatalogProductTypeInput> = T["dimensions"][number];
type TypedOption<D, T extends CatalogProductTypeInput> = D extends {
type CatalogReadonly<T> = T extends (...args: never[]) => unknown ? T : T extends object ? {
type SelectedOptions<T extends CatalogProductTypeInput, Selected extends string> = [Extract<Dimension<T>, {
type DraftForType<T extends CatalogProductTypeInput, Selected extends string = Dimension<T>["key"]> = Omit<CatalogReadonly<CatalogDraftPayload>, "product" | "skus"> & {
export type CatalogPackDraft<P extends CatalogPackInput, Selected extends string = P["types"][number]["dimensions"][number]["key"]> = P["types"][number] extends infer T ? T extends CatalogProductTypeInput ? DraftForType<T, Selected> : never : never;
type DraftInput = CatalogReadonly<CatalogDraftPayload>;
type Attribute<T extends CatalogProductTypeInput, Scope extends "product" | "variant"> = T extends {
type AttributeValue<V, T extends CatalogProductTypeInput> = V extends {
type RequiredAttribute<A> = A extends {
type TypedAttributes<T extends CatalogProductTypeInput, Scope extends "product" | "variant"> = {
type AttributeField<T extends CatalogProductTypeInput, Scope extends "product" | "variant"> = [RequiredAttribute<Attribute<T, Scope>>] extends [never] ? {
type DraftV2ForType<T extends CatalogProductTypeInput, Selected extends string> = {
type AnyDraftInput = DraftInput | CatalogReadonly<CatalogDraftPayloadV2>;
type SelectedDraft<P extends CatalogPackInput, D extends AnyDraftInput> = P["types"][number] extends infer T ? T extends CatalogProductTypeInput ? D["product"]["type"] extends Pick<T, "key" | "version"> ? (D extends {
type AttributeReferences<V, T extends CatalogProductTypeInput> = V extends {
type AttributeInput<A, T extends CatalogProductTypeInput> = A extends {
type DimensionInput<D, T extends CatalogProductTypeInput> = D extends {
type TypeReferences<P extends CatalogPackInput, T extends CatalogProductTypeInput> = T extends unknown ? string extends T["key"] | Units<T> ? never : number extends T["version"] ? never : T & {
type PackReferences<P extends CatalogPackInput> = string extends P["namespace"] | P["taxClasses"][number]["key"] | ProfileKeys<P> ? never : number extends ProfileVersions<P> ? never : {
export declare function defineCatalogPack<const P extends CatalogPackInput>(pack: P & Exact<P, CatalogPackInput> & PackReferences<P>): CatalogReadonly<P>;
export declare function draftsFor<const P extends CatalogPackInput>(pack: P & (string extends P["types"][number]["key"] ? never : unknown)): <const D extends readonly AnyDraftInput[]>(drafts: D & Exact<D, AnyDraftInput[]> & {
export interface CatalogDefinitionInstallReceipt {
export declare const CATALOG_DRAFT_MAX_BYTES = 1048576;
export declare const CATALOG_DRAFT_MAX_PAGE = 100;
export interface CatalogDraftPayload {
export interface CatalogDraftCommand {
export interface CatalogDraftSummary {
export interface CatalogDraftRecord extends CatalogDraftSummary {
export interface CatalogDraftPage {
export interface CatalogDraftRefusal {
export type CatalogDraftApplyResult = {
export interface CatalogDraftGetQuery {
export interface CatalogDraftListQuery {
export declare function canonicalCatalogDraftJson(input: unknown): string;
export interface CatalogDraftPriceOperationV2 {
export type CatalogAttributeScalarValue = string | boolean | CatalogQuantity | {
export type CatalogAttributeValue = CatalogAttributeScalarValue | readonly CatalogAttributeScalarValue[];
export interface CatalogDraftPayloadV2 {
export interface CatalogDraftCommandV2 {
export type CatalogDraftStoredPayload = CatalogDraftPayload | CatalogDraftPayloadV2;
export type CatalogDraftStoredCommand = CatalogDraftCommand | CatalogDraftCommandV2;
export interface CatalogDraftStoredRecord extends CatalogDraftSummary {
export type CatalogDraftStoredApplyResult = {
export type CatalogPublicationJson = null | boolean | number | string | CatalogPublicationJson[] | {
export type CatalogPublicationFacts = {
export type CatalogDraftProvenanceV3 = {
export interface CatalogDraftClaimV3 {
export interface CatalogDraftMediaClaimV3 {
export interface CatalogDraftPublicationSkuV3 {
export interface CatalogDraftMembershipV3 {
export interface CatalogDraftSharedContentV3 {
export type CatalogDraftPublicationOperationV3 = {
export interface CatalogDraftPublicationInputsV3 {
export interface CatalogDraftPayloadV3 extends Omit<CatalogDraftPayloadV2, "schemaVersion" | "product"> {
export interface CatalogDraftCommandV3 {
export type CatalogDraftPublicationStoredPayload = CatalogDraftStoredPayload | CatalogDraftPayloadV3;
export type CatalogDraftPublicationStoredCommand = CatalogDraftStoredCommand | CatalogDraftCommandV3;
export interface CatalogDraftPublicationStoredRecord extends CatalogDraftSummary {
export type CatalogDraftPublicationStoredApplyResult = {
export declare const CATALOG_FOUNDATION_CONTRACT_VERSION = "catalog.foundation.v1";
export interface CatalogDocumentRevisionRef {
export interface CatalogSkuIdentifier {
export type CatalogSkuEnvelopeSelector = {
export interface NeutralSkuEnvelopeV1 {
export interface CatalogPriceContext {
export type CatalogSkuAuthorityRefusal = "catalog_sku_authority_sku_absent" | "catalog_sku_authority_product_absent" | "catalog_sku_authority_primary_sku_invalid" | "catalog_sku_authority_selector_ambiguous" | "catalog_sku_authority_current_document_absent" | "catalog_sku_authority_current_document_invalid" | "catalog_sku_identifier_authority_absent" | "catalog_sku_identifier_authority_ambiguous" | "catalog_sku_identifier_authority_invalid";
export declare class CatalogSkuAuthorityError extends Error {
export declare function isValidGtin(value: string): boolean;
export declare function assertPrimaryUnitGtinAuthority(identifiers: readonly CatalogSkuIdentifier[]): void;
export declare function requireCurrentCatalogDocumentAuthority<T extends {
export { CATALOG_DRAFT_MAX_BYTES, CATALOG_DRAFT_MAX_PAGE, canonicalCatalogDraftJson } from "./draft.js";
export type { CatalogDraftPayload, CatalogDraftCommand, CatalogDraftSummary, CatalogDraftRecord, CatalogDraftPage, CatalogDraftRefusal, CatalogDraftApplyResult, CatalogDraftGetQuery, CatalogDraftListQuery } from "./draft.js";
export { CATALOG_FOUNDATION_CONTRACT_VERSION, CatalogSkuAuthorityError, isValidGtin, assertPrimaryUnitGtinAuthority, requireCurrentCatalogDocumentAuthority } from "./foundation.js";
export type { CatalogDocumentRevisionRef, CatalogSkuIdentifier, CatalogSkuEnvelopeSelector, NeutralSkuEnvelopeV1, CatalogPriceContext, CatalogSkuAuthorityRefusal } from "./foundation.js";
export { validateCatalogQuantity, canonicalCatalogOption } from "./productTypes.js";
export type { CatalogQuantityDimension, CatalogQuantity, CatalogOptionValue, CatalogDraftIssue, CatalogProductTypeRef, CatalogProductTypeDefinition, CatalogProductTypeRegistry } from "./productTypes.js";
export { SELLABLE_CATALOG_CONTRACT_VERSION } from "./sellable.js";
export type { SellableCatalogItem, SellableCatalogProfile, SellableCatalogListResponse } from "./sellable.js";
export * from "./productMediaContracts.js";
export { resolveProductMedia } from "./resolveProductMedia.js";
export type { CatalogVariantState, CatalogHeadRef, CatalogLifecycleObservation, CatalogPublishCommand, CatalogPublicationReceipt, CatalogPublicationRefusal, CatalogPublicationReadResult, CatalogPublicationReceiptResult, CatalogHistoryResult } from "./lifecycle.js";
export type { CreateBundleDraftRequest, CreateBundleDraftResponse, UpdateBundleDraftRequest, UpdateBundleDraftResponse, BundleComponent, SetBundleCompositionRequest, SetBundleCompositionResponse, SetBundleTargetPriceRequest, SetBundleTargetPriceResponse, ArchiveBundleRequest, ArchiveBundleResponse, RestoreBundleRequest, RestoreBundleResponse, CloneBundleDraftRequest, CloneBundleDraftResponse, ActivateBundleRequest, ActivateBundleResponse, DeactivateBundleRequest, DeactivateBundleResponse } from "./bundleAdmin.js";
export type { ListBundlesRequest, ListBundlesResponse, BundleSummaryView, GetBundleRequest, GetBundleResponse, BundleDetailView, BundleAvailabilityView, BundleHistoryRequest, BundleHistoryResponse, PreviewBundlePriceRequest, PreviewBundlePriceResponse, BundlePricePreview } from "./bundleRead.js";
export type { SellableBundle, SellableBundleComponent, SellableBundleAvailability, SellableBundleListResponse } from "./bundleAvailability.js";
export type { AgentReason } from "./rpcErrors.js";
export * from "./attributes.js";
export type { CatalogConformanceCode, CatalogConformanceRule, CatalogDefinitionIssue } from "./catalogConformance.js";
export * from "./catalogPack.js";
export type { CatalogTypeDefinitionV2, CatalogProductTypeInput } from "./productTypes.js";
export type { CatalogDefinitionInstallReceipt } from "./definitionInstall.js";
export type { CatalogCombinationIdentityV2, CatalogCombinationCode, CatalogRetainedCombinationV2, CatalogCombinationChangeV2 } from "./variantAxes.js";
export type { CatalogDraftPriceOperationV2, CatalogAttributeScalarValue, CatalogAttributeValue, CatalogDraftPayloadV2, CatalogDraftCommandV2, CatalogDraftStoredPayload, CatalogDraftStoredCommand, CatalogDraftStoredRecord, CatalogDraftStoredApplyResult } from "./draftV2.js";
export type { CatalogCandidateQuery, CatalogCandidatePreview, CatalogCandidateComparison } from "./candidate.js";
export type { CatalogPublicationJson, CatalogPublicationFacts, CatalogDraftProvenanceV3, CatalogDraftClaimV3, CatalogDraftMediaClaimV3, CatalogDraftPublicationSkuV3, CatalogDraftMembershipV3, CatalogDraftSharedContentV3, CatalogDraftPublicationOperationV3, CatalogDraftPublicationInputsV3, CatalogDraftPayloadV3, CatalogDraftCommandV3, CatalogDraftPublicationStoredPayload, CatalogDraftPublicationStoredCommand, CatalogDraftPublicationStoredRecord, CatalogDraftPublicationStoredApplyResult } from "./draftV3.js";
export type CatalogVariantState = "draft" | "active" | "withdrawn";
export interface CatalogHeadRef {
export interface CatalogLifecycleObservation {
export interface CatalogPublishCommand {
export interface CatalogPublicationReceipt {
export interface CatalogPublicationRefusal {
export type CatalogPublicationReadResult = {
export type CatalogPublicationReceiptResult = {
export type CatalogHistoryResult = {
export type ProductMediaRole = "primary" | "view" | "illustration";
export interface ProductMediaAsset {
export interface ProductMediaProduct {
export interface ProductMediaAssociation {
export interface ProductMediaManifest {
export interface ProductMediaRequest {
export interface ResolvedProductMediaItem {
export interface ResolvedProductMedia {
export interface StorefrontProductMedia {
export declare const PRODUCT_MEDIA_LIMITS: Readonly<{
export type ProductMediaValidationCode = "invalid_schema" | "duplicate_identity" | "unsafe_path" | "undeclared_variant" | "missing_resource" | "conflicting_primary" | "collection_limit_exceeded" | "pack_limit_exceeded";
export declare class ProductMediaValidationError extends Error {
export declare function validateProductMediaSourcePath(value: unknown): string;
export declare function validateProductMediaManifest(value: unknown): ProductMediaManifest;
export type { CatalogQuantity, CatalogQuantityDimension } from "@openlup/core/catalog";
export type CatalogOptionValue = {
export type CatalogDraftIssue = {
export interface CatalogProductTypeRef {
export interface CatalogProductTypeDefinition extends CatalogProductTypeRef {
export type CatalogProductTypeInput = Omit<CatalogProductTypeDefinition, "units" | "netContentUnits" | "dimensions"> & {
export interface CatalogTypeDefinitionV2 extends Omit<CatalogProductTypeInput, "validateContent"> {
export interface CatalogProductTypeRegistry {
export declare function validateCatalogQuantity(quantity: CatalogQuantity, definition: CatalogProductTypeDefinition): boolean;
export declare function canonicalCatalogOption(value: CatalogOptionValue): string;
export declare function resolveProductMedia(value: ProductMediaManifest, request: ProductMediaRequest, assetUrls: Readonly<Record<string, string>>): ResolvedProductMedia;
export type AgentReason = "actor_required" | "actor_unknown" | "actor_kind_not_allowed" | "publish_requires_human" | "draft_only_for_machine" | "price_required_to_sell" | "not_found" | "already_exists" | "feature_flag_disabled" | (string & {});
export declare const SELLABLE_CATALOG_CONTRACT_VERSION = "catalog.sellable.v1";
export interface SellableCatalogItem {
export interface SellableCatalogProfile {
export interface SellableCatalogListResponse {
export interface CatalogCombinationIdentityV2 {
export type CatalogCombinationCode = "axis_not_installed" | "duplicate_axis" | "option_not_selected" | "option_missing" | "option_invalid" | "unit_factor_missing" | "sku_identity_change_requires_new_sku" | "duplicate_combination" | "combination_digest_collision" | "duplicate_sku_id" | "combination_identity_integrity_failed" | "sku_payload_limit" | "product_capacity_exceeded" | "product_capacity_invalid";
export interface CatalogRetainedCombinationV2 {
export interface CatalogCombinationChangeV2 {
export declare function runCatalogExtensionConformance(jsonText: string): Promise<CatalogConformanceReport>;
export interface CatalogRefusalFixture {
export interface CatalogConformanceSubject {
export interface CatalogConformanceFinding {
export interface CatalogConformanceReport {
export { runCatalogExtensionConformance } from "./catalogExtensionConformance.js";
export type { CatalogConformanceSubject, CatalogRefusalFixture, CatalogConformanceFinding, CatalogConformanceReport } from "./contracts.js";
@openlup/platform/catalog
Added declarations:
// API report diff: not compiled.
export interface CatalogAttributeProjectionRow extends CatalogAttributeProjectionValue {
export type CatalogAttributeProjectionPreparation = {
export declare function prepareCatalogAttributeProjection(validation: CatalogAttributeValidation, publicationRevision: string): CatalogAttributeProjectionPreparation;
export interface CatalogAttributeReference {
export interface CatalogAttributeReferenceResolution extends CatalogAttributeReference {
export interface CatalogAttributeReferencePort {
export interface CatalogAttributeInput {
export interface CatalogAttributeProjectionValue {
declare const validatedAttributes: unique symbol;
export type CatalogAttributeValidation = {
export declare function validateCatalogAttributes(definition: CatalogProductTypeInput, input: CatalogAttributeInput, references?: CatalogAttributeReferencePort): Promise<CatalogAttributeValidation>;
export declare function catalogAttributesReadyForPublication(result: CatalogAttributeValidation): boolean;
export declare function backfillCatalogNetContent(installExecutor: PgQueryExecutor, options: {
export declare class CatalogCandidateError extends Error {
export interface CatalogCandidateDeps {
export declare function createCatalogCandidateService(deps: CatalogCandidateDeps): CatalogValidationPort & {
export declare const CATALOG_CONFORMANCE_RULES: Readonly<Record<CatalogConformanceCode, CatalogConformanceRule>>;
export declare function catalogDefinitionJson(definition: CatalogProductTypeInput): string;
export declare function catalogDefinitionDigest(definition: CatalogProductTypeInput): string;
export declare function observeCatalogDefinitionReadiness(readExecutor: PgQueryExecutor, registry: CatalogProductTypeRegistry, database: string): Promise<CatalogRegistryObservation>;
export declare function createCatalogDefinitionWriteGuard(readExecutor: PgQueryExecutor, registry: CatalogProductTypeRegistry): <T>(write: () => Promise<T>) => Promise<T>;
export declare function createPostgresCatalogDraftStoreV2(client: PgQueryExecutor): CatalogDraftStorePort<CatalogDraftStoredRecord>;
export declare function createPostgresCatalogDraftStoreV3(client: PgQueryExecutor): CatalogDraftStorePort<CatalogDraftPublicationStoredRecord>;
export interface CatalogPackManifest {
export declare function catalogPackManifest(pack: CatalogPackInput): CatalogPackManifest;
export type CatalogAttributeScalarType = {
export type CatalogAttributeValueType = CatalogAttributeScalarType | {
export interface AttributeDefinition {
export interface CatalogAxisDefinition {
export interface CatalogCandidateQuery {
export interface CatalogCandidatePreview {
export interface CatalogCandidateComparison {
export type CatalogConformanceCode = "definition_invalid_shape" | "definition_unknown_field" | "definition_key_invalid" | "definition_version_invalid" | "definition_unit_invalid" | "definition_dimension_invalid" | "definition_net_content_invalid" | "definition_attribute_invalid" | "definition_axis_invalid" | "definition_validator_ref_invalid" | "definition_profile_ref_invalid" | "definition_tax_class_invalid" | "definition_callback_missing" | "definition_duplicate_identity" | "definition_duplicate_unit" | "definition_duplicate_dimension" | "definition_duplicate_net_content_unit" | "definition_unknown_net_content_unit" | "definition_duplicate_choice" | "definition_duplicate_dimension_unit" | "definition_dimension_unit_mismatch" | "definition_net_content_unit_mismatch" | "definition_multiple_net_content_dimensions" | "definition_unit_factor_invalid" | "definition_duplicate_attribute" | "definition_facetable_not_filterable" | "definition_unknown_attribute_unit" | "definition_duplicate_axis" | "definition_unknown_axis_attribute" | "definition_axis_scope_invalid" | "definition_duplicate_enum_value" | "definition_unknown_axis_dimension" | "definition_unknown_tax_class" | "definition_unknown_profile_ref" | "pack_type_namespace_mismatch" | "attribute_projection_text_too_large" | "attribute_storage_too_large" | "attribute_values_invalid" | "attribute_value_invalid" | "attribute_unknown_key" | "attribute_scope_conflict" | "attribute_cardinality_invalid" | "attribute_required_missing" | "attribute_required_locale_missing" | "attribute_reference_unresolved" | "attribute_publication_revision_invalid" | "conformance_subject_invalid" | "conformance_owner_unavailable" | "conformance_refusal_fixture_missing" | "conformance_refusal_fixture_invalid" | "conformance_refusal_fixture_mismatch" | "draft_input_invalid" | "draft_payload_invalid" | CatalogQuantityCode | CatalogCombinationCode;
export interface CatalogConformanceRule {
export interface CatalogDefinitionIssue {
export interface CatalogPackInput {
type Profile<P extends CatalogPackInput> = P extends {
type ProfileKeys<P extends CatalogPackInput> = Profile<P> extends infer R ? R extends {
type ProfileVersions<P extends CatalogPackInput> = Profile<P> extends infer R ? R extends {
type Exact<Input, Shape> = unknown extends Shape ? Input : Input extends (...args: never[]) => unknown ? Input extends Shape ? Input : never : Input extends readonly unknown[] ? Shape extends readonly (infer Item)[] ? {
type Units<T extends CatalogProductTypeInput> = T["units"][number]["code"];
type QuantityIn<T extends CatalogProductTypeInput, Codes extends string> = T["units"][number] extends infer U ? U extends {
type UnitCodesFor<T extends CatalogProductTypeInput, D extends CatalogQuantity["dimension"]> = T["units"][number] extends infer U ? U extends {
type AttributeKeys<T extends CatalogProductTypeInput> = T extends {
type Dimension<T extends CatalogProductTypeInput> = T["dimensions"][number];
type TypedOption<D, T extends CatalogProductTypeInput> = D extends {
type CatalogReadonly<T> = T extends (...args: never[]) => unknown ? T : T extends object ? {
type SelectedOptions<T extends CatalogProductTypeInput, Selected extends string> = [Extract<Dimension<T>, {
type DraftForType<T extends CatalogProductTypeInput, Selected extends string = Dimension<T>["key"]> = Omit<CatalogReadonly<CatalogDraftPayload>, "product" | "skus"> & {
export type CatalogPackDraft<P extends CatalogPackInput, Selected extends string = P["types"][number]["dimensions"][number]["key"]> = P["types"][number] extends infer T ? T extends CatalogProductTypeInput ? DraftForType<T, Selected> : never : never;
type DraftInput = CatalogReadonly<CatalogDraftPayload>;
type Attribute<T extends CatalogProductTypeInput, Scope extends "product" | "variant"> = T extends {
type AttributeValue<V, T extends CatalogProductTypeInput> = V extends {
type RequiredAttribute<A> = A extends {
type TypedAttributes<T extends CatalogProductTypeInput, Scope extends "product" | "variant"> = {
type AttributeField<T extends CatalogProductTypeInput, Scope extends "product" | "variant"> = [RequiredAttribute<Attribute<T, Scope>>] extends [never] ? {
type DraftV2ForType<T extends CatalogProductTypeInput, Selected extends string> = {
type AnyDraftInput = DraftInput | CatalogReadonly<CatalogDraftPayloadV2>;
type SelectedDraft<P extends CatalogPackInput, D extends AnyDraftInput> = P["types"][number] extends infer T ? T extends CatalogProductTypeInput ? D["product"]["type"] extends Pick<T, "key" | "version"> ? (D extends {
type AttributeReferences<V, T extends CatalogProductTypeInput> = V extends {
type AttributeInput<A, T extends CatalogProductTypeInput> = A extends {
type DimensionInput<D, T extends CatalogProductTypeInput> = D extends {
type TypeReferences<P extends CatalogPackInput, T extends CatalogProductTypeInput> = T extends unknown ? string extends T["key"] | Units<T> ? never : number extends T["version"] ? never : T & {
type PackReferences<P extends CatalogPackInput> = string extends P["namespace"] | P["taxClasses"][number]["key"] | ProfileKeys<P> ? never : number extends ProfileVersions<P> ? never : {
export declare function defineCatalogPack<const P extends CatalogPackInput>(pack: P & Exact<P, CatalogPackInput> & PackReferences<P>): CatalogReadonly<P>;
export declare function draftsFor<const P extends CatalogPackInput>(pack: P & (string extends P["types"][number]["key"] ? never : unknown)): <const D extends readonly AnyDraftInput[]>(drafts: D & Exact<D, AnyDraftInput[]> & {
export interface CatalogDefinitionInstallReceipt {
export interface CatalogDraftPriceOperationV2 {
export type CatalogAttributeScalarValue = string | boolean | CatalogQuantity | {
export type CatalogAttributeValue = CatalogAttributeScalarValue | readonly CatalogAttributeScalarValue[];
export interface CatalogDraftPayloadV2 {
export interface CatalogDraftCommandV2 {
export type CatalogDraftStoredPayload = CatalogDraftPayload | CatalogDraftPayloadV2;
export type CatalogDraftStoredCommand = CatalogDraftCommand | CatalogDraftCommandV2;
export interface CatalogDraftStoredRecord extends CatalogDraftSummary {
export type CatalogDraftStoredApplyResult = {
export type CatalogPublicationJson = null | boolean | number | string | CatalogPublicationJson[] | {
export type CatalogPublicationFacts = {
export type CatalogDraftProvenanceV3 = {
export interface CatalogDraftClaimV3 {
export interface CatalogDraftMediaClaimV3 {
export interface CatalogDraftPublicationSkuV3 {
export interface CatalogDraftMembershipV3 {
export interface CatalogDraftSharedContentV3 {
export type CatalogDraftPublicationOperationV3 = {
export interface CatalogDraftPublicationInputsV3 {
export interface CatalogDraftPayloadV3 extends Omit<CatalogDraftPayloadV2, "schemaVersion" | "product"> {
export interface CatalogDraftCommandV3 {
export type CatalogDraftPublicationStoredPayload = CatalogDraftStoredPayload | CatalogDraftPayloadV3;
export type CatalogDraftPublicationStoredCommand = CatalogDraftStoredCommand | CatalogDraftCommandV3;
export interface CatalogDraftPublicationStoredRecord extends CatalogDraftSummary {
export type CatalogDraftPublicationStoredApplyResult = {
export * from "./attributes.js";
export type { CatalogConformanceCode, CatalogConformanceRule, CatalogDefinitionIssue } from "./catalogConformance.js";
export * from "./catalogPack.js";
export type { CatalogTypeDefinitionV2, CatalogProductTypeInput } from "./productTypes.js";
export type { CatalogDefinitionInstallReceipt } from "./definitionInstall.js";
export type { CatalogCombinationIdentityV2, CatalogCombinationCode, CatalogRetainedCombinationV2, CatalogCombinationChangeV2 } from "./variantAxes.js";
export type { CatalogDraftPriceOperationV2, CatalogAttributeScalarValue, CatalogAttributeValue, CatalogDraftPayloadV2, CatalogDraftCommandV2, CatalogDraftStoredPayload, CatalogDraftStoredCommand, CatalogDraftStoredRecord, CatalogDraftStoredApplyResult } from "./draftV2.js";
export type { CatalogCandidateQuery, CatalogCandidatePreview, CatalogCandidateComparison } from "./candidate.js";
export type { CatalogPublicationJson, CatalogPublicationFacts, CatalogDraftProvenanceV3, CatalogDraftClaimV3, CatalogDraftMediaClaimV3, CatalogDraftPublicationSkuV3, CatalogDraftMembershipV3, CatalogDraftSharedContentV3, CatalogDraftPublicationOperationV3, CatalogDraftPublicationInputsV3, CatalogDraftPayloadV3, CatalogDraftCommandV3, CatalogDraftPublicationStoredPayload, CatalogDraftPublicationStoredCommand, CatalogDraftPublicationStoredRecord, CatalogDraftPublicationStoredApplyResult } from "./draftV3.js";
export type { CatalogQuantity, CatalogQuantityDimension } from "@openlup/core/catalog";
export type CatalogProductTypeInput = Omit<CatalogProductTypeDefinition, "units" | "netContentUnits" | "dimensions"> & {
export interface CatalogTypeDefinitionV2 extends Omit<CatalogProductTypeInput, "validateContent"> {
export interface CatalogCombinationIdentityV2 {
export type CatalogCombinationCode = "axis_not_installed" | "duplicate_axis" | "option_not_selected" | "option_missing" | "option_invalid" | "unit_factor_missing" | "sku_identity_change_requires_new_sku" | "duplicate_combination" | "combination_digest_collision" | "duplicate_sku_id" | "combination_identity_integrity_failed" | "sku_payload_limit" | "product_capacity_exceeded" | "product_capacity_invalid";
export interface CatalogRetainedCombinationV2 {
export interface CatalogCombinationChangeV2 {
export declare function createCatalogDraftHandlerV2<Context>(deps: CatalogDraftHandlerDeps<Context, CatalogDraftStoredRecord>): {
export declare function createCatalogDraftHandlerV3<Context>(deps: CatalogDraftHandlerDeps<Context, CatalogDraftPublicationStoredRecord>): {
export declare const catalogDraftPriceOperationV2Schema: z.ZodType<CatalogDraftPriceOperationV2>;
export declare const catalogDraftSkuV2Schema: z.ZodObject<{
export declare const catalogDraftProductV2Schema: z.ZodObject<{
export declare const catalogDraftPayloadV2Schema: z.ZodType<CatalogDraftPayloadV2>;
export declare const catalogDraftCommandV2Schema: z.ZodType<CatalogDraftCommandV2>;
export declare const catalogDraftStoredPayloadSchema: z.ZodType<CatalogDraftStoredPayload>;
export declare const catalogDraftStoredCommandSchema: z.ZodType<CatalogDraftStoredCommand>;
export declare const catalogDraftStoredRecordSchema: z.ZodType<CatalogDraftStoredRecord>;
export declare const catalogDraftStoredApplyResultSchema: z.ZodType<CatalogDraftStoredApplyResult>;
export declare function validateCatalogDraftV2(payload: CatalogDraftPayloadV2, registry: CatalogProductTypeRegistry, references?: CatalogAttributeReferencePort): Promise<CatalogDraftValidation>;
export declare const catalogDraftSharedContentV3Schema: z.ZodType<CatalogDraftSharedContentV3>;
export declare const catalogDraftProvenanceV3Schema: z.ZodType<CatalogDraftProvenanceV3>;
export declare const catalogDraftPublicationOperationV3Schema: z.ZodType<CatalogDraftPublicationOperationV3>;
export declare const catalogDraftPublicationInputsV3Schema: z.ZodType<CatalogDraftPublicationInputsV3>;
export declare function catalogDraftV3ValidationPayload(payload: CatalogDraftPayloadV3): {
export declare const catalogDraftPayloadV3Schema: z.ZodType<CatalogDraftPayloadV3>;
export declare const catalogDraftCommandV3Schema: z.ZodType<CatalogDraftCommandV3>;
export declare const catalogDraftPublicationStoredPayloadSchema: z.ZodType<CatalogDraftPublicationStoredPayload>;
export declare const catalogDraftPublicationStoredCommandSchema: z.ZodType<CatalogDraftPublicationStoredCommand>;
export declare const catalogDraftPublicationStoredRecordSchema: z.ZodType<CatalogDraftPublicationStoredRecord>;
export declare const catalogDraftPublicationStoredApplyResultSchema: z.ZodType<CatalogDraftPublicationStoredApplyResult>;
export declare function extractCatalogDraftPublicationInputs(payload: unknown): {
export declare function resolveCatalogDraftProvenance(provenance: CatalogDraftProvenanceV3, record: CatalogDraftPublicationStoredRecord): {
export { catalogProductTypeIssues, catalogProductTypeRefIssues } from "./productTypeIssues.js";
export { catalogDefinitionDigest } from "./catalogDefinitionDigest.js";
export { catalogPackManifest } from "./catalogPackManifest.js";
export type { CatalogPackManifest } from "./catalogPackManifest.js";
export { installCatalogDefinitions } from "./installCatalogDefinitions.js";
export { observeCatalogDefinitionReadiness, createCatalogDefinitionWriteGuard } from "./catalogDefinitionReadiness.js";
export type { CatalogDefinitionInstallReceipt } from "./contracts/definitionInstall.js";
export { CATALOG_CONFORMANCE_RULES } from "./catalogConformance.js";
export { catalogPackIssues } from "./productTypeIssues.js";
export { backfillCatalogNetContent } from "./backfillCatalogNetContent.js";
export { validateCatalogAttributes, catalogAttributesReadyForPublication } from "./attributeValidation.js";
export type { CatalogAttributeInput, CatalogAttributeValidation, CatalogAttributeProjectionValue } from "./attributeValidation.js";
export type { CatalogAttributeReference, CatalogAttributeReferenceResolution, CatalogAttributeReferencePort } from "./attributeReferencePort.js";
export { prepareCatalogAttributeProjection } from "./attributeProjection.js";
export type { CatalogAttributeProjectionRow, CatalogAttributeProjectionPreparation } from "./attributeProjection.js";
export { CatalogCombinationError, canonicalizeCatalogCombinationV2, classifyCatalogCombinationConflictV2, validateCatalogCombinationChangesV2 } from "./variantCombination.js";
export { catalogDraftPriceOperationV2Schema, catalogDraftPayloadV2Schema, catalogDraftCommandV2Schema, catalogDraftStoredPayloadSchema, catalogDraftStoredCommandSchema, catalogDraftStoredRecordSchema, catalogDraftStoredApplyResultSchema } from "./draftV2Schemas.js";
export { validateCatalogDraftV2 } from "./draftV2Validation.js";
export { createCatalogCandidateService, CatalogCandidateError } from "./candidate.js";
export type { CatalogCandidateDeps } from "./candidate.js";
export { createCatalogDraftHandlerV2 } from "./draftHandler.js";
export { createPostgresCatalogDraftStoreV2 } from "./catalogDraftStore.js";
export { catalogDraftSharedContentV3Schema, catalogDraftProvenanceV3Schema, catalogDraftPublicationOperationV3Schema, catalogDraftPublicationInputsV3Schema, catalogDraftPayloadV3Schema, catalogDraftCommandV3Schema, catalogDraftPublicationStoredPayloadSchema, catalogDraftPublicationStoredCommandSchema, catalogDraftPublicationStoredRecordSchema, catalogDraftPublicationStoredApplyResultSchema, extractCatalogDraftPublicationInputs, resolveCatalogDraftProvenance } from "./draftV3Schemas.js";
export { createCatalogDraftHandlerV3 } from "./draftHandler.js";
export { createPostgresCatalogDraftStoreV3 } from "./catalogDraftStore.js";
export declare function installCatalogDefinitions(installExecutor: PgQueryExecutor, pack: CatalogPackInput): Promise<CatalogDefinitionInstallReceipt>;
export declare const catalogDefinitionMetadataSchema: z.ZodObject<{
export declare function catalogProductTypeRefIssues(input: unknown): CatalogDefinitionIssue[];
export declare function catalogProductTypeIssues(definitions: readonly unknown[]): CatalogDefinitionIssue[];
export declare function catalogPackIssues(input: unknown): CatalogDefinitionIssue[];
export { catalogNamespacedKeySchema, catalogDimensionKeySchema, catalogQuantityDimensionSchema, catalogQuantitySchema, catalogOptionValueSchema, catalogProductTypeRefSchema, catalogProductTypeIssues } from "./productTypeIssues.js";
export declare class CatalogCombinationError extends Error {
export declare function canonicalizeCatalogCombinationV2(input: {
export declare function classifyCatalogCombinationConflictV2(left: CatalogCombinationIdentityV2, right: CatalogCombinationIdentityV2): "distinct" | "duplicate" | "collision";
export declare function validateCatalogCombinationChangesV2(input: {
export interface CatalogPriceSetupStorePort {
export interface CatalogPriceSetupHandlerDeps<Context> {
export type CatalogPriceSetupReadback = {
export declare function createCatalogPriceSetupHandler<Context>(deps: CatalogPriceSetupHandlerDeps<Context>): {
export declare const CATALOG_PRICE_SETUP_MAX_MINOR = 2147483647;
export declare const catalogPriceSetupReasonsSchema: z.ZodArray<z.ZodString>;
export declare const catalogPriceSetupExpectedSchema: z.ZodUnion<readonly [z.ZodObject<{
export declare const catalogPriceSetupCommandSchema: z.ZodObject<{
export declare const catalogPriceSetupPreviewQuerySchema: z.ZodObject<{
export declare const catalogPriceSetupSubscriptionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
export declare const catalogPriceSetupPreviewSchema: z.ZodObject<{
export declare const catalogPriceSetupReceiptSchema: z.ZodObject<{
export declare const catalogPriceSetupRefusalSchema: z.ZodObject<{
export declare const catalogPriceSetupPreviewResultSchema: z.ZodUnion<readonly [z.ZodObject<{
export declare const catalogPriceSetupApplyResultSchema: z.ZodUnion<readonly [z.ZodObject<{
export type CatalogPriceSetupCommand = z.infer<typeof catalogPriceSetupCommandSchema>;
export type CatalogPriceSetupPreviewQuery = z.infer<typeof catalogPriceSetupPreviewQuerySchema>;
export type CatalogPriceSetupPreview = z.infer<typeof catalogPriceSetupPreviewSchema>;
export type CatalogPriceSetupReceipt = z.infer<typeof catalogPriceSetupReceiptSchema>;
export type CatalogPriceSetupRefusal = z.infer<typeof catalogPriceSetupRefusalSchema>;
export type CatalogPriceSetupApplyResult = z.infer<typeof catalogPriceSetupApplyResultSchema>;
export type CatalogPriceSetupApplyResult = {
export declare function canonicalCatalogPriceSetupCommand(input: unknown): string;
export interface CatalogPriceSetupCommand {
export interface CatalogPriceSetupEntry {
export interface CatalogPriceSetupReadiness {
export interface CatalogPriceSetupPreviewQuery {
export type CatalogPriceSetupSubscription = {
export interface CatalogPriceSetupPreview {
export interface CatalogPriceSetupReceipt {
export interface CatalogPriceSetupRefusal {
export type { CatalogPriceSetupCommand, CatalogPriceSetupEntry, CatalogPriceSetupReadiness, CatalogPriceSetupPreviewQuery, CatalogPriceSetupSubscription, CatalogPriceSetupPreview, CatalogPriceSetupReceipt, CatalogPriceSetupRefusal, CatalogPriceSetupApplyResult } from "./catalogPriceSetup.js";
export { CATALOG_PRICE_SETUP_MAX_MINOR, catalogPriceSetupCommandSchema, catalogPriceSetupExpectedSchema, catalogPriceSetupPreviewQuerySchema, catalogPriceSetupPreviewSchema, catalogPriceSetupReceiptSchema, catalogPriceSetupRefusalSchema, catalogPriceSetupPreviewResultSchema, catalogPriceSetupApplyResultSchema, canonicalCatalogPriceSetupCommand } from "./catalogPriceSetupSchemas.js";
export { createCatalogPriceSetupHandler } from "./catalogPriceSetupHandler.js";
export type { CatalogPriceSetupStorePort, CatalogPriceSetupHandlerDeps, CatalogPriceSetupReadback } from "./catalogPriceSetupHandler.js";
export { createPostgresCatalogPriceSetupStore, catalogPriceSetupRefusal, CATALOG_PRICE_SETUP_HARD_REFUSALS } from "./postgresCatalogPriceSetupStore.js";
export type { CatalogPriceSetupQueryExecutor } from "./postgresCatalogPriceSetupStore.js";
export interface CatalogPriceSetupQueryExecutor {
export declare function createPostgresCatalogPriceSetupStore(client: CatalogPriceSetupQueryExecutor): CatalogPriceSetupStorePort;
export declare const CATALOG_PRICE_SETUP_HARD_REFUSALS: readonly ["native_promotion_unverified", "native_cohort_unverified", "native_order_unverified", "native_agreement_unverified", "settlement_context_unverified", "native_promotion_domain_unverified", "native_price_domain_unverified", "native_catalog_domain_unverified", "native_policy_domain_unverified", "native_agreement_domain_unverified", "native_job_domain_unverified", "native_order_domain_unverified", "native_order_policy_pair_unverified", "native_order_admission_unverified", "native_order_guard_unverified", "native_order_claim_guard_unverified"];
export declare function catalogPriceSetupRefusal(error: unknown): CatalogPriceSetupRefusal;
Removed declarations:
// API report diff: not compiled.
export type CatalogQuantityDimension = "mass" | "volume" | "count";
export interface CatalogQuantity {
Changed declarations:
// API report diff: not compiled.
export declare function createPostgresCatalogDraftStore(client: PgQueryExecutor): CatalogDraftStorePort;
export interface CatalogProductTypeDefinition extends CatalogProductTypeRef {
export interface CatalogDraftHandlerDeps<Context, Record extends CatalogDraftPublicationStoredRecord = CatalogDraftRecord> {
export declare function createCatalogDraftHandler<Context>(deps: CatalogDraftHandlerDeps<Context>): {
export interface CatalogDraftStorePort<Record extends CatalogDraftPublicationStoredRecord = CatalogDraftRecord> {
export declare const catalogNamespacedKeySchema: z.ZodString;
export declare const catalogDimensionKeySchema: z.ZodString;
export declare const catalogQuantityDimensionSchema: z.ZodEnum<{
export declare const catalogQuantitySchema: z.ZodObject<{
export declare const catalogOptionValueSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
export declare const catalogProductTypeRefSchema: z.ZodObject<{
export declare function createCatalogProductTypeRegistry(definitions: readonly CatalogProductTypeInput[]): CatalogProductTypeRegistry;
export declare const CATALOG_MIGRATIONS: readonly [{
export type CommercePriceAuthorityRefusal = "active_price_list_not_found" | "active_price_list_ambiguous" | "base_price_not_found" | "base_price_ambiguous" | "base_price_amount_kind_invalid" | "legacy_subscription_price_not_found" | "legacy_subscription_price_ambiguous" | "subscription_price_policy_not_effective" | "subscription_price_policy_ambiguous" | "subscription_price_policy_invalid" | "subscription_price_policy_digest_mismatch" | "subscription_price_policy_original_tuple_unverified";
export interface SubscriptionPricePolicyRevision extends SubscriptionPricePolicyCanonicalInput {
export type SubscriptionPricePolicyDigestRefusal = "subscription_price_policy_digest_mismatch" | "subscription_price_policy_original_tuple_unverified";
export declare const subscriptionPricePolicyRevisionSchema: z.ZodObject<{
@openlup/platform/commerce/server/native-checkout
Added declarations:
// API report diff: not compiled.
export interface CatalogPriceSetupStorePort {
export interface CatalogPriceSetupHandlerDeps<Context> {
export type CatalogPriceSetupReadback = {
export declare function createCatalogPriceSetupHandler<Context>(deps: CatalogPriceSetupHandlerDeps<Context>): {
export declare const CATALOG_PRICE_SETUP_MAX_MINOR = 2147483647;
export declare const catalogPriceSetupReasonsSchema: z.ZodArray<z.ZodString>;
export declare const catalogPriceSetupExpectedSchema: z.ZodUnion<readonly [z.ZodObject<{
export declare const catalogPriceSetupCommandSchema: z.ZodObject<{
export declare const catalogPriceSetupPreviewQuerySchema: z.ZodObject<{
export declare const catalogPriceSetupSubscriptionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
export declare const catalogPriceSetupPreviewSchema: z.ZodObject<{
export declare const catalogPriceSetupReceiptSchema: z.ZodObject<{
export declare const catalogPriceSetupRefusalSchema: z.ZodObject<{
export declare const catalogPriceSetupPreviewResultSchema: z.ZodUnion<readonly [z.ZodObject<{
export declare const catalogPriceSetupApplyResultSchema: z.ZodUnion<readonly [z.ZodObject<{
export type CatalogPriceSetupCommand = z.infer<typeof catalogPriceSetupCommandSchema>;
export type CatalogPriceSetupPreviewQuery = z.infer<typeof catalogPriceSetupPreviewQuerySchema>;
export type CatalogPriceSetupPreview = z.infer<typeof catalogPriceSetupPreviewSchema>;
export type CatalogPriceSetupReceipt = z.infer<typeof catalogPriceSetupReceiptSchema>;
export type CatalogPriceSetupRefusal = z.infer<typeof catalogPriceSetupRefusalSchema>;
export type CatalogPriceSetupApplyResult = z.infer<typeof catalogPriceSetupApplyResultSchema>;
export type CatalogPriceSetupApplyResult = {
export declare function canonicalCatalogPriceSetupCommand(input: unknown): string;
export interface CatalogPriceSetupCommand {
export interface CatalogPriceSetupEntry {
export interface CatalogPriceSetupReadiness {
export interface CatalogPriceSetupPreviewQuery {
export type CatalogPriceSetupSubscription = {
export interface CatalogPriceSetupPreview {
export interface CatalogPriceSetupReceipt {
export interface CatalogPriceSetupRefusal {
export type { CatalogPriceSetupCommand, CatalogPriceSetupEntry, CatalogPriceSetupReadiness, CatalogPriceSetupPreviewQuery, CatalogPriceSetupSubscription, CatalogPriceSetupPreview, CatalogPriceSetupReceipt, CatalogPriceSetupRefusal, CatalogPriceSetupApplyResult } from "./catalogPriceSetup.js";
export { CATALOG_PRICE_SETUP_MAX_MINOR, catalogPriceSetupCommandSchema, catalogPriceSetupExpectedSchema, catalogPriceSetupPreviewQuerySchema, catalogPriceSetupPreviewSchema, catalogPriceSetupReceiptSchema, catalogPriceSetupRefusalSchema, catalogPriceSetupPreviewResultSchema, catalogPriceSetupApplyResultSchema, canonicalCatalogPriceSetupCommand } from "./catalogPriceSetupSchemas.js";
export { createCatalogPriceSetupHandler } from "./catalogPriceSetupHandler.js";
export type { CatalogPriceSetupStorePort, CatalogPriceSetupHandlerDeps, CatalogPriceSetupReadback } from "./catalogPriceSetupHandler.js";
export { createPostgresCatalogPriceSetupStore, catalogPriceSetupRefusal, CATALOG_PRICE_SETUP_HARD_REFUSALS } from "./postgresCatalogPriceSetupStore.js";
export type { CatalogPriceSetupQueryExecutor } from "./postgresCatalogPriceSetupStore.js";
export interface CatalogPriceSetupQueryExecutor {
export declare function createPostgresCatalogPriceSetupStore(client: CatalogPriceSetupQueryExecutor): CatalogPriceSetupStorePort;
export declare const CATALOG_PRICE_SETUP_HARD_REFUSALS: readonly ["native_promotion_unverified", "native_cohort_unverified", "native_order_unverified", "native_agreement_unverified", "settlement_context_unverified", "native_promotion_domain_unverified", "native_price_domain_unverified", "native_catalog_domain_unverified", "native_policy_domain_unverified", "native_agreement_domain_unverified", "native_job_domain_unverified", "native_order_domain_unverified", "native_order_policy_pair_unverified", "native_order_admission_unverified", "native_order_guard_unverified", "native_order_claim_guard_unverified"];
export declare function catalogPriceSetupRefusal(error: unknown): CatalogPriceSetupRefusal;
Changed declarations:
// API report diff: not compiled.
export type CommercePriceAuthorityRefusal = "active_price_list_not_found" | "active_price_list_ambiguous" | "base_price_not_found" | "base_price_ambiguous" | "base_price_amount_kind_invalid" | "legacy_subscription_price_not_found" | "legacy_subscription_price_ambiguous" | "subscription_price_policy_not_effective" | "subscription_price_policy_ambiguous" | "subscription_price_policy_invalid" | "subscription_price_policy_digest_mismatch" | "subscription_price_policy_original_tuple_unverified";
export interface SubscriptionPricePolicyRevision extends SubscriptionPricePolicyCanonicalInput {
export type SubscriptionPricePolicyDigestRefusal = "subscription_price_policy_digest_mismatch" | "subscription_price_policy_original_tuple_unverified";
export declare const subscriptionPricePolicyRevisionSchema: z.ZodObject<{
@openlup/platform/commerce/server/postgres
Added declarations:
// API report diff: not compiled.
export interface CatalogPriceSetupStorePort {
export interface CatalogPriceSetupHandlerDeps<Context> {
export type CatalogPriceSetupReadback = {
export declare function createCatalogPriceSetupHandler<Context>(deps: CatalogPriceSetupHandlerDeps<Context>): {
export declare const CATALOG_PRICE_SETUP_MAX_MINOR = 2147483647;
export declare const catalogPriceSetupReasonsSchema: z.ZodArray<z.ZodString>;
export declare const catalogPriceSetupExpectedSchema: z.ZodUnion<readonly [z.ZodObject<{
export declare const catalogPriceSetupCommandSchema: z.ZodObject<{
export declare const catalogPriceSetupPreviewQuerySchema: z.ZodObject<{
export declare const catalogPriceSetupSubscriptionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
export declare const catalogPriceSetupPreviewSchema: z.ZodObject<{
export declare const catalogPriceSetupReceiptSchema: z.ZodObject<{
export declare const catalogPriceSetupRefusalSchema: z.ZodObject<{
export declare const catalogPriceSetupPreviewResultSchema: z.ZodUnion<readonly [z.ZodObject<{
export declare const catalogPriceSetupApplyResultSchema: z.ZodUnion<readonly [z.ZodObject<{
export type CatalogPriceSetupCommand = z.infer<typeof catalogPriceSetupCommandSchema>;
export type CatalogPriceSetupPreviewQuery = z.infer<typeof catalogPriceSetupPreviewQuerySchema>;
export type CatalogPriceSetupPreview = z.infer<typeof catalogPriceSetupPreviewSchema>;
export type CatalogPriceSetupReceipt = z.infer<typeof catalogPriceSetupReceiptSchema>;
export type CatalogPriceSetupRefusal = z.infer<typeof catalogPriceSetupRefusalSchema>;
export type CatalogPriceSetupApplyResult = z.infer<typeof catalogPriceSetupApplyResultSchema>;
export type CatalogPriceSetupApplyResult = {
export declare function canonicalCatalogPriceSetupCommand(input: unknown): string;
export interface CatalogPriceSetupCommand {
export interface CatalogPriceSetupEntry {
export interface CatalogPriceSetupReadiness {
export interface CatalogPriceSetupPreviewQuery {
export type CatalogPriceSetupSubscription = {
export interface CatalogPriceSetupPreview {
export interface CatalogPriceSetupReceipt {
export interface CatalogPriceSetupRefusal {
export type { CatalogPriceSetupCommand, CatalogPriceSetupEntry, CatalogPriceSetupReadiness, CatalogPriceSetupPreviewQuery, CatalogPriceSetupSubscription, CatalogPriceSetupPreview, CatalogPriceSetupReceipt, CatalogPriceSetupRefusal, CatalogPriceSetupApplyResult } from "./catalogPriceSetup.js";
export { CATALOG_PRICE_SETUP_MAX_MINOR, catalogPriceSetupCommandSchema, catalogPriceSetupExpectedSchema, catalogPriceSetupPreviewQuerySchema, catalogPriceSetupPreviewSchema, catalogPriceSetupReceiptSchema, catalogPriceSetupRefusalSchema, catalogPriceSetupPreviewResultSchema, catalogPriceSetupApplyResultSchema, canonicalCatalogPriceSetupCommand } from "./catalogPriceSetupSchemas.js";
export { createCatalogPriceSetupHandler } from "./catalogPriceSetupHandler.js";
export type { CatalogPriceSetupStorePort, CatalogPriceSetupHandlerDeps, CatalogPriceSetupReadback } from "./catalogPriceSetupHandler.js";
export { createPostgresCatalogPriceSetupStore, catalogPriceSetupRefusal, CATALOG_PRICE_SETUP_HARD_REFUSALS } from "./postgresCatalogPriceSetupStore.js";
export type { CatalogPriceSetupQueryExecutor } from "./postgresCatalogPriceSetupStore.js";
export interface CatalogPriceSetupQueryExecutor {
export declare function createPostgresCatalogPriceSetupStore(client: CatalogPriceSetupQueryExecutor): CatalogPriceSetupStorePort;
export declare const CATALOG_PRICE_SETUP_HARD_REFUSALS: readonly ["native_promotion_unverified", "native_cohort_unverified", "native_order_unverified", "native_agreement_unverified", "settlement_context_unverified", "native_promotion_domain_unverified", "native_price_domain_unverified", "native_catalog_domain_unverified", "native_policy_domain_unverified", "native_agreement_domain_unverified", "native_job_domain_unverified", "native_order_domain_unverified", "native_order_policy_pair_unverified", "native_order_admission_unverified", "native_order_guard_unverified", "native_order_claim_guard_unverified"];
export declare function catalogPriceSetupRefusal(error: unknown): CatalogPriceSetupRefusal;
Changed declarations:
// API report diff: not compiled.
export type CommercePriceAuthorityRefusal = "active_price_list_not_found" | "active_price_list_ambiguous" | "base_price_not_found" | "base_price_ambiguous" | "base_price_amount_kind_invalid" | "legacy_subscription_price_not_found" | "legacy_subscription_price_ambiguous" | "subscription_price_policy_not_effective" | "subscription_price_policy_ambiguous" | "subscription_price_policy_invalid" | "subscription_price_policy_digest_mismatch" | "subscription_price_policy_original_tuple_unverified";
export interface SubscriptionPricePolicyRevision extends SubscriptionPricePolicyCanonicalInput {
export type SubscriptionPricePolicyDigestRefusal = "subscription_price_policy_digest_mismatch" | "subscription_price_policy_original_tuple_unverified";
export declare const subscriptionPricePolicyRevisionSchema: z.ZodObject<{
@openlup/platform/commerce/server
Added declarations:
// API report diff: not compiled.
export interface CatalogPriceSetupStorePort {
export interface CatalogPriceSetupHandlerDeps<Context> {
export type CatalogPriceSetupReadback = {
export declare function createCatalogPriceSetupHandler<Context>(deps: CatalogPriceSetupHandlerDeps<Context>): {
export declare const CATALOG_PRICE_SETUP_MAX_MINOR = 2147483647;
export declare const catalogPriceSetupReasonsSchema: z.ZodArray<z.ZodString>;
export declare const catalogPriceSetupExpectedSchema: z.ZodUnion<readonly [z.ZodObject<{
export declare const catalogPriceSetupCommandSchema: z.ZodObject<{
export declare const catalogPriceSetupPreviewQuerySchema: z.ZodObject<{
export declare const catalogPriceSetupSubscriptionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
export declare const catalogPriceSetupPreviewSchema: z.ZodObject<{
export declare const catalogPriceSetupReceiptSchema: z.ZodObject<{
export declare const catalogPriceSetupRefusalSchema: z.ZodObject<{
export declare const catalogPriceSetupPreviewResultSchema: z.ZodUnion<readonly [z.ZodObject<{
export declare const catalogPriceSetupApplyResultSchema: z.ZodUnion<readonly [z.ZodObject<{
export type CatalogPriceSetupCommand = z.infer<typeof catalogPriceSetupCommandSchema>;
export type CatalogPriceSetupPreviewQuery = z.infer<typeof catalogPriceSetupPreviewQuerySchema>;
export type CatalogPriceSetupPreview = z.infer<typeof catalogPriceSetupPreviewSchema>;
export type CatalogPriceSetupReceipt = z.infer<typeof catalogPriceSetupReceiptSchema>;
export type CatalogPriceSetupRefusal = z.infer<typeof catalogPriceSetupRefusalSchema>;
export type CatalogPriceSetupApplyResult = z.infer<typeof catalogPriceSetupApplyResultSchema>;
export type CatalogPriceSetupApplyResult = {
export declare function canonicalCatalogPriceSetupCommand(input: unknown): string;
export interface CatalogPriceSetupCommand {
export interface CatalogPriceSetupEntry {
export interface CatalogPriceSetupReadiness {
export interface CatalogPriceSetupPreviewQuery {
export type CatalogPriceSetupSubscription = {
export interface CatalogPriceSetupPreview {
export interface CatalogPriceSetupReceipt {
export interface CatalogPriceSetupRefusal {
export type { CatalogPriceSetupCommand, CatalogPriceSetupEntry, CatalogPriceSetupReadiness, CatalogPriceSetupPreviewQuery, CatalogPriceSetupSubscription, CatalogPriceSetupPreview, CatalogPriceSetupReceipt, CatalogPriceSetupRefusal, CatalogPriceSetupApplyResult } from "./catalogPriceSetup.js";
export { CATALOG_PRICE_SETUP_MAX_MINOR, catalogPriceSetupCommandSchema, catalogPriceSetupExpectedSchema, catalogPriceSetupPreviewQuerySchema, catalogPriceSetupPreviewSchema, catalogPriceSetupReceiptSchema, catalogPriceSetupRefusalSchema, catalogPriceSetupPreviewResultSchema, catalogPriceSetupApplyResultSchema, canonicalCatalogPriceSetupCommand } from "./catalogPriceSetupSchemas.js";
export { createCatalogPriceSetupHandler } from "./catalogPriceSetupHandler.js";
export type { CatalogPriceSetupStorePort, CatalogPriceSetupHandlerDeps, CatalogPriceSetupReadback } from "./catalogPriceSetupHandler.js";
export { createPostgresCatalogPriceSetupStore, catalogPriceSetupRefusal, CATALOG_PRICE_SETUP_HARD_REFUSALS } from "./postgresCatalogPriceSetupStore.js";
export type { CatalogPriceSetupQueryExecutor } from "./postgresCatalogPriceSetupStore.js";
export interface CatalogPriceSetupQueryExecutor {
export declare function createPostgresCatalogPriceSetupStore(client: CatalogPriceSetupQueryExecutor): CatalogPriceSetupStorePort;
export declare const CATALOG_PRICE_SETUP_HARD_REFUSALS: readonly ["native_promotion_unverified", "native_cohort_unverified", "native_order_unverified", "native_agreement_unverified", "settlement_context_unverified", "native_promotion_domain_unverified", "native_price_domain_unverified", "native_catalog_domain_unverified", "native_policy_domain_unverified", "native_agreement_domain_unverified", "native_job_domain_unverified", "native_order_domain_unverified", "native_order_policy_pair_unverified", "native_order_admission_unverified", "native_order_guard_unverified", "native_order_claim_guard_unverified"];
export declare function catalogPriceSetupRefusal(error: unknown): CatalogPriceSetupRefusal;
Changed declarations:
// API report diff: not compiled.
export type CommercePriceAuthorityRefusal = "active_price_list_not_found" | "active_price_list_ambiguous" | "base_price_not_found" | "base_price_ambiguous" | "base_price_amount_kind_invalid" | "legacy_subscription_price_not_found" | "legacy_subscription_price_ambiguous" | "subscription_price_policy_not_effective" | "subscription_price_policy_ambiguous" | "subscription_price_policy_invalid" | "subscription_price_policy_digest_mismatch" | "subscription_price_policy_original_tuple_unverified";
export interface SubscriptionPricePolicyRevision extends SubscriptionPricePolicyCanonicalInput {
export type SubscriptionPricePolicyDigestRefusal = "subscription_price_policy_digest_mismatch" | "subscription_price_policy_original_tuple_unverified";
export declare const subscriptionPricePolicyRevisionSchema: z.ZodObject<{
@openlup/platform/pricing/contracts
Added declarations:
// API report diff: not compiled.
export interface CatalogPriceSetupCommand {
export interface CatalogPriceSetupEntry {
export interface CatalogPriceSetupReadiness {
export interface CatalogPriceSetupPreviewQuery {
export type CatalogPriceSetupSubscription = {
export interface CatalogPriceSetupPreview {
export interface CatalogPriceSetupReceipt {
export interface CatalogPriceSetupRefusal {
export type CatalogPriceSetupApplyResult = {
export type { CatalogPriceSetupCommand, CatalogPriceSetupEntry, CatalogPriceSetupReadiness, CatalogPriceSetupPreviewQuery, CatalogPriceSetupSubscription, CatalogPriceSetupPreview, CatalogPriceSetupReceipt, CatalogPriceSetupRefusal, CatalogPriceSetupApplyResult } from "./catalogPriceSetup.js";
Changed declarations:
// API report diff: not compiled.
export type CommercePriceAuthorityRefusal = "active_price_list_not_found" | "active_price_list_ambiguous" | "base_price_not_found" | "base_price_ambiguous" | "base_price_amount_kind_invalid" | "legacy_subscription_price_not_found" | "legacy_subscription_price_ambiguous" | "subscription_price_policy_not_effective" | "subscription_price_policy_ambiguous" | "subscription_price_policy_invalid" | "subscription_price_policy_digest_mismatch" | "subscription_price_policy_original_tuple_unverified";
export interface SubscriptionPricePolicyRevision extends SubscriptionPricePolicyCanonicalInput {
export type SubscriptionPricePolicyDigestRefusal = "subscription_price_policy_digest_mismatch" | "subscription_price_policy_original_tuple_unverified";
@openlup/platform/pricing
Added declarations:
// API report diff: not compiled.
export interface CatalogPriceSetupStorePort {
export interface CatalogPriceSetupHandlerDeps<Context> {
export type CatalogPriceSetupReadback = {
export declare function createCatalogPriceSetupHandler<Context>(deps: CatalogPriceSetupHandlerDeps<Context>): {
export declare const CATALOG_PRICE_SETUP_MAX_MINOR = 2147483647;
export declare const catalogPriceSetupReasonsSchema: z.ZodArray<z.ZodString>;
export declare const catalogPriceSetupExpectedSchema: z.ZodUnion<readonly [z.ZodObject<{
export declare const catalogPriceSetupCommandSchema: z.ZodObject<{
export declare const catalogPriceSetupPreviewQuerySchema: z.ZodObject<{
export declare const catalogPriceSetupSubscriptionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
export declare const catalogPriceSetupPreviewSchema: z.ZodObject<{
export declare const catalogPriceSetupReceiptSchema: z.ZodObject<{
export declare const catalogPriceSetupRefusalSchema: z.ZodObject<{
export declare const catalogPriceSetupPreviewResultSchema: z.ZodUnion<readonly [z.ZodObject<{
export declare const catalogPriceSetupApplyResultSchema: z.ZodUnion<readonly [z.ZodObject<{
export type CatalogPriceSetupCommand = z.infer<typeof catalogPriceSetupCommandSchema>;
export type CatalogPriceSetupPreviewQuery = z.infer<typeof catalogPriceSetupPreviewQuerySchema>;
export type CatalogPriceSetupPreview = z.infer<typeof catalogPriceSetupPreviewSchema>;
export type CatalogPriceSetupReceipt = z.infer<typeof catalogPriceSetupReceiptSchema>;
export type CatalogPriceSetupRefusal = z.infer<typeof catalogPriceSetupRefusalSchema>;
export type CatalogPriceSetupApplyResult = z.infer<typeof catalogPriceSetupApplyResultSchema>;
export type CatalogPriceSetupApplyResult = {
export declare function canonicalCatalogPriceSetupCommand(input: unknown): string;
export interface CatalogPriceSetupCommand {
export interface CatalogPriceSetupEntry {
export interface CatalogPriceSetupReadiness {
export interface CatalogPriceSetupPreviewQuery {
export type CatalogPriceSetupSubscription = {
export interface CatalogPriceSetupPreview {
export interface CatalogPriceSetupReceipt {
export interface CatalogPriceSetupRefusal {
export type { CatalogPriceSetupCommand, CatalogPriceSetupEntry, CatalogPriceSetupReadiness, CatalogPriceSetupPreviewQuery, CatalogPriceSetupSubscription, CatalogPriceSetupPreview, CatalogPriceSetupReceipt, CatalogPriceSetupRefusal, CatalogPriceSetupApplyResult } from "./catalogPriceSetup.js";
export { CATALOG_PRICE_SETUP_MAX_MINOR, catalogPriceSetupCommandSchema, catalogPriceSetupExpectedSchema, catalogPriceSetupPreviewQuerySchema, catalogPriceSetupPreviewSchema, catalogPriceSetupReceiptSchema, catalogPriceSetupRefusalSchema, catalogPriceSetupPreviewResultSchema, catalogPriceSetupApplyResultSchema, canonicalCatalogPriceSetupCommand } from "./catalogPriceSetupSchemas.js";
export { createCatalogPriceSetupHandler } from "./catalogPriceSetupHandler.js";
export type { CatalogPriceSetupStorePort, CatalogPriceSetupHandlerDeps, CatalogPriceSetupReadback } from "./catalogPriceSetupHandler.js";
export { createPostgresCatalogPriceSetupStore, catalogPriceSetupRefusal, CATALOG_PRICE_SETUP_HARD_REFUSALS } from "./postgresCatalogPriceSetupStore.js";
export type { CatalogPriceSetupQueryExecutor } from "./postgresCatalogPriceSetupStore.js";
export interface CatalogPriceSetupQueryExecutor {
export declare function createPostgresCatalogPriceSetupStore(client: CatalogPriceSetupQueryExecutor): CatalogPriceSetupStorePort;
export declare const CATALOG_PRICE_SETUP_HARD_REFUSALS: readonly ["native_promotion_unverified", "native_cohort_unverified", "native_order_unverified", "native_agreement_unverified", "settlement_context_unverified", "native_promotion_domain_unverified", "native_price_domain_unverified", "native_catalog_domain_unverified", "native_policy_domain_unverified", "native_agreement_domain_unverified", "native_job_domain_unverified", "native_order_domain_unverified", "native_order_policy_pair_unverified", "native_order_admission_unverified", "native_order_guard_unverified", "native_order_claim_guard_unverified"];
export declare function catalogPriceSetupRefusal(error: unknown): CatalogPriceSetupRefusal;
Changed declarations:
// API report diff: not compiled.
export type CommercePriceAuthorityRefusal = "active_price_list_not_found" | "active_price_list_ambiguous" | "base_price_not_found" | "base_price_ambiguous" | "base_price_amount_kind_invalid" | "legacy_subscription_price_not_found" | "legacy_subscription_price_ambiguous" | "subscription_price_policy_not_effective" | "subscription_price_policy_ambiguous" | "subscription_price_policy_invalid" | "subscription_price_policy_digest_mismatch" | "subscription_price_policy_original_tuple_unverified";
export interface SubscriptionPricePolicyRevision extends SubscriptionPricePolicyCanonicalInput {
export type SubscriptionPricePolicyDigestRefusal = "subscription_price_policy_digest_mismatch" | "subscription_price_policy_original_tuple_unverified";
export declare const subscriptionPricePolicyRevisionSchema: z.ZodObject<{
@openlup/platform/promotions
Added declarations:
// API report diff: not compiled.
export interface CatalogPriceSetupStorePort {
export interface CatalogPriceSetupHandlerDeps<Context> {
export type CatalogPriceSetupReadback = {
export declare function createCatalogPriceSetupHandler<Context>(deps: CatalogPriceSetupHandlerDeps<Context>): {
export declare const CATALOG_PRICE_SETUP_MAX_MINOR = 2147483647;
export declare const catalogPriceSetupReasonsSchema: z.ZodArray<z.ZodString>;
export declare const catalogPriceSetupExpectedSchema: z.ZodUnion<readonly [z.ZodObject<{
export declare const catalogPriceSetupCommandSchema: z.ZodObject<{
export declare const catalogPriceSetupPreviewQuerySchema: z.ZodObject<{
export declare const catalogPriceSetupSubscriptionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
export declare const catalogPriceSetupPreviewSchema: z.ZodObject<{
export declare const catalogPriceSetupReceiptSchema: z.ZodObject<{
export declare const catalogPriceSetupRefusalSchema: z.ZodObject<{
export declare const catalogPriceSetupPreviewResultSchema: z.ZodUnion<readonly [z.ZodObject<{
export declare const catalogPriceSetupApplyResultSchema: z.ZodUnion<readonly [z.ZodObject<{
export type CatalogPriceSetupCommand = z.infer<typeof catalogPriceSetupCommandSchema>;
export type CatalogPriceSetupPreviewQuery = z.infer<typeof catalogPriceSetupPreviewQuerySchema>;
export type CatalogPriceSetupPreview = z.infer<typeof catalogPriceSetupPreviewSchema>;
export type CatalogPriceSetupReceipt = z.infer<typeof catalogPriceSetupReceiptSchema>;
export type CatalogPriceSetupRefusal = z.infer<typeof catalogPriceSetupRefusalSchema>;
export type CatalogPriceSetupApplyResult = z.infer<typeof catalogPriceSetupApplyResultSchema>;
export type CatalogPriceSetupApplyResult = {
export declare function canonicalCatalogPriceSetupCommand(input: unknown): string;
export interface CatalogPriceSetupCommand {
export interface CatalogPriceSetupEntry {
export interface CatalogPriceSetupReadiness {
export interface CatalogPriceSetupPreviewQuery {
export type CatalogPriceSetupSubscription = {
export interface CatalogPriceSetupPreview {
export interface CatalogPriceSetupReceipt {
export interface CatalogPriceSetupRefusal {
export type { CatalogPriceSetupCommand, CatalogPriceSetupEntry, CatalogPriceSetupReadiness, CatalogPriceSetupPreviewQuery, CatalogPriceSetupSubscription, CatalogPriceSetupPreview, CatalogPriceSetupReceipt, CatalogPriceSetupRefusal, CatalogPriceSetupApplyResult } from "./catalogPriceSetup.js";
export { CATALOG_PRICE_SETUP_MAX_MINOR, catalogPriceSetupCommandSchema, catalogPriceSetupExpectedSchema, catalogPriceSetupPreviewQuerySchema, catalogPriceSetupPreviewSchema, catalogPriceSetupReceiptSchema, catalogPriceSetupRefusalSchema, catalogPriceSetupPreviewResultSchema, catalogPriceSetupApplyResultSchema, canonicalCatalogPriceSetupCommand } from "./catalogPriceSetupSchemas.js";
export { createCatalogPriceSetupHandler } from "./catalogPriceSetupHandler.js";
export type { CatalogPriceSetupStorePort, CatalogPriceSetupHandlerDeps, CatalogPriceSetupReadback } from "./catalogPriceSetupHandler.js";
export { createPostgresCatalogPriceSetupStore, catalogPriceSetupRefusal, CATALOG_PRICE_SETUP_HARD_REFUSALS } from "./postgresCatalogPriceSetupStore.js";
export type { CatalogPriceSetupQueryExecutor } from "./postgresCatalogPriceSetupStore.js";
export interface CatalogPriceSetupQueryExecutor {
export declare function createPostgresCatalogPriceSetupStore(client: CatalogPriceSetupQueryExecutor): CatalogPriceSetupStorePort;
export declare const CATALOG_PRICE_SETUP_HARD_REFUSALS: readonly ["native_promotion_unverified", "native_cohort_unverified", "native_order_unverified", "native_agreement_unverified", "settlement_context_unverified", "native_promotion_domain_unverified", "native_price_domain_unverified", "native_catalog_domain_unverified", "native_policy_domain_unverified", "native_agreement_domain_unverified", "native_job_domain_unverified", "native_order_domain_unverified", "native_order_policy_pair_unverified", "native_order_admission_unverified", "native_order_guard_unverified", "native_order_claim_guard_unverified"];
export declare function catalogPriceSetupRefusal(error: unknown): CatalogPriceSetupRefusal;
Changed declarations:
// API report diff: not compiled.
export type CommercePriceAuthorityRefusal = "active_price_list_not_found" | "active_price_list_ambiguous" | "base_price_not_found" | "base_price_ambiguous" | "base_price_amount_kind_invalid" | "legacy_subscription_price_not_found" | "legacy_subscription_price_ambiguous" | "subscription_price_policy_not_effective" | "subscription_price_policy_ambiguous" | "subscription_price_policy_invalid" | "subscription_price_policy_digest_mismatch" | "subscription_price_policy_original_tuple_unverified";
export interface SubscriptionPricePolicyRevision extends SubscriptionPricePolicyCanonicalInput {
export type SubscriptionPricePolicyDigestRefusal = "subscription_price_policy_digest_mismatch" | "subscription_price_policy_original_tuple_unverified";
export declare const subscriptionPricePolicyRevisionSchema: z.ZodObject<{
@openlup/platform/subscriptions/contracts
Added declarations:
// API report diff: not compiled.
export type { SubscriptionEditTerms, SubscriptionTermsAdmission, PackageEditMoney, PackageEditLine, PackageEditQuoteLine, PackageEditPricedLine, PackageEditRequest, PackageEditQuote, PackageEditBlockedReason, PackageEditPreview, PackageEditApplyResult } from "./packageEdit.js";
export interface SubscriptionEditTerms {
export type SubscriptionTermsAdmission = (terms: SubscriptionEditTerms) => void | Promise<void>;
Removed declarations:
// API report diff: not compiled.
export type { PackageEditMoney, PackageEditLine, PackageEditQuoteLine, PackageEditPricedLine, PackageEditRequest, PackageEditQuote, PackageEditBlockedReason, PackageEditPreview, PackageEditApplyResult } from "./packageEdit.js";
@openlup/platform/subscriptions
Added declarations:
// API report diff: not compiled.
export interface SubscriptionEditTerms {
export type SubscriptionTermsAdmission = (terms: SubscriptionEditTerms) => void | Promise<void>;
export type { SubscriptionEditTerms, SubscriptionTermsAdmission, PackageEditMoney, PackageEditLine, PackageEditQuoteLine, PackageEditPricedLine, PackageEditRequest, PackageEditQuote, PackageEditSubscription, PackageEditCurrentLine, PackageEditConstraintMapper, PackageEditReadPort, PackageEditQuotePorts, PackageEditLimits, PackageEditorOptions, PackageEditActor, PackageEditBlockedReason, PackageEditPreview, PackageEditApplyResult } from "./packageEditContracts.js";
export type { SubscriptionEditTerms, SubscriptionTermsAdmission, PackageEditMoney, PackageEditLine, PackageEditQuoteLine, PackageEditPricedLine, PackageEditRequest, PackageEditQuote, PackageEditBlockedReason, PackageEditPreview, PackageEditApplyResult } from "./contracts/packageEdit.js";
Removed declarations:
// API report diff: not compiled.
export type { PackageEditMoney, PackageEditLine, PackageEditQuoteLine, PackageEditPricedLine, PackageEditRequest, PackageEditQuote, PackageEditSubscription, PackageEditCurrentLine, PackageEditConstraintMapper, PackageEditReadPort, PackageEditQuotePorts, PackageEditLimits, PackageEditorOptions, PackageEditActor, PackageEditBlockedReason, PackageEditPreview, PackageEditApplyResult } from "./packageEditContracts.js";
export type { PackageEditMoney, PackageEditLine, PackageEditQuoteLine, PackageEditPricedLine, PackageEditRequest, PackageEditQuote, PackageEditBlockedReason, PackageEditPreview, PackageEditApplyResult } from "./contracts/packageEdit.js";
Changed declarations:
// API report diff: not compiled.
export interface PackageEditQuotePorts {
export interface SizedHostPorts {