@tokenoftrust/storefront-runner 7.2.2 → 7.2.3

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.
@@ -132,7 +132,7 @@ async function resolveRawViewerCapability(
132
132
  export async function resolveNamedSubjectGrant(
133
133
  email: string | null | undefined,
134
134
  appDomain: string | null | undefined,
135
- capability: "customer-contact-read",
135
+ capability: "customer-contact-read" | "content-edit",
136
136
  deps: ViewerShipGrantDeps = {},
137
137
  ): Promise<boolean> {
138
138
  const subject = (email ?? "").trim().toLowerCase();
@@ -1,6 +1,8 @@
1
1
  import type { APIContext } from "astro";
2
2
 
3
3
  const ROUTES = {
4
+ "tour-draft": { path: /^\/api\/tours\/drafts\/(tour_[a-z0-9][a-z0-9-]{1,62})\/?$/, param: "tourId" },
5
+ "tour-derive": { path: /^\/api\/tours\/drafts\/(tour_[a-z0-9][a-z0-9-]{1,62})\/derive\/?$/, param: "tourId" },
4
6
  "checkout-order": { path: /^\/api\/admin\/orders\/([A-Za-z0-9._:-]{1,128})\/?$/, param: "id" },
5
7
  "pipeline-job": { path: /^\/api\/pipeline\/jobs\/([A-Za-z0-9._:-]{1,128})\/?$/, param: "jobId" },
6
8
  "fulfillment-order": { path: /^\/api\/admin\/fulfillment\/orders\/([A-Za-z0-9._:-]{1,128})\/?$/, param: "id" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokenoftrust/storefront-runner",
3
- "version": "7.2.2",
3
+ "version": "7.2.3",
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",