@tokenoftrust/storefront-runner 7.6.0 → 7.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/apps/storefront/src/components/checkout/storefront/islands/CartAddedDialog.tsx +8 -0
- package/apps/storefront/src/lib/checkout/agent/checkoutSession.ts +26 -17
- package/apps/storefront/src/lib/checkout/commerce/assistantOrderEvidence.ts +215 -0
- package/apps/storefront/src/lib/checkout/commerce/checkoutHandoffRoute.ts +1 -1
- package/apps/storefront/src/lib/checkout/proposal/cartProposal.ts +31 -5
- package/apps/storefront/src/lib/checkout/proposal/proposalRoutes.ts +123 -6
- package/apps/storefront/src/lib/checkout/shared/cartState.ts +45 -1
- package/apps/storefront/src/lib/checkout/shared/intakeSuspend.ts +21 -0
- package/apps/storefront/src/lib/fulfillment/carrierEvidence.ts +105 -0
- package/apps/storefront/src/lib/fulfillment/readiness.ts +217 -0
- package/apps/storefront/src/lib/orders/data/sourceAuthorityContract.ts +380 -0
- package/apps/storefront/src/lib/orders/data/sourceAuthorityStore.ts +830 -0
- package/apps/storefront/src/pages/api/cart-proposal/confirm.ts +6 -1
- package/package.json +1 -1
- package/packages/public-runtime/src/checkout-orders.ts +2 -0
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import type { APIContext } from "astro";
|
|
3
3
|
import { cartProposalConfirm } from "@/lib/checkout/proposal/proposalRoutes";
|
|
4
4
|
import { pageUrlForm } from "@/lib/content/seo/urlForm";
|
|
5
|
+
import { carrierPolicyForTenant } from "@/lib/fulfillment/readiness";
|
|
5
6
|
import { withBase } from "@/lib/publication/shared/basePath";
|
|
6
7
|
|
|
7
8
|
export const prerender = false;
|
|
@@ -9,4 +10,8 @@ export const prerender = false;
|
|
|
9
10
|
const productPagePath = (context: APIContext, handle: string): string =>
|
|
10
11
|
withBase(context.locals.basePath ?? "", pageUrlForm(`/products/${handle}`, context.locals.tenant.seo));
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
const adultSignatureRequired = (context: APIContext): boolean =>
|
|
14
|
+
carrierPolicyForTenant(context.locals.tenant).adultSignatureRequired;
|
|
15
|
+
|
|
16
|
+
export const POST = (context: APIContext): Promise<Response> =>
|
|
17
|
+
cartProposalConfirm(context, { productPagePath, adultSignatureRequired });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tokenoftrust/storefront-runner",
|
|
3
|
-
"version": "7.6.
|
|
3
|
+
"version": "7.6.2",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"description": "World-shareable storefront runner: multi-tenant renderer on Astro/Cloudflare. No control plane.",
|
|
6
6
|
"packageManager": "pnpm@11.9.0",
|
|
@@ -140,6 +140,8 @@ export interface CheckoutOrderDetailResponse {
|
|
|
140
140
|
export interface CheckoutOrderListFilters {
|
|
141
141
|
queue?: string;
|
|
142
142
|
status?: string;
|
|
143
|
+
/** Optional redeemed coupon code filter (case-insensitive). */
|
|
144
|
+
coupon?: string;
|
|
143
145
|
/** ISO datetime lower bound. */
|
|
144
146
|
from?: string;
|
|
145
147
|
/** ISO datetime upper bound. */
|