{"version":3,"sources":["../../src/dynamic-page-router-v1-page-pages.universal.ts","../../src/dynamic-page-router-v1-page-pages.http.ts","../../src/dynamic-page-router-v1-page-pages.public.ts","../../src/dynamic-page-router-v1-page-pages.context.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n  renameKeysFromSDKRequestToRESTRequest,\n  renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixDynamicPageRouterV1Page from './dynamic-page-router-v1-page-pages.http.js';\n\n/** Stub entity, not used at the moment. */\nexport interface Page {\n  /**\n   * Page ID.\n   * @format GUID\n   * @readonly\n   */\n  _id?: string | null;\n}\n\nexport interface GetRouterSitemapCountRequest {\n  /**\n   * Router prefix that identifies the page type or origin. For TPA (Third-Party Application) pages, this contains the TPA page ID.\n   * @maxLength 2048\n   */\n  routerPrefix?: string;\n  /** Config containing request patterns, e.g. '/{title}' */\n  config?: Config;\n  /** Map of page roles containing page ID and title of each role */\n  pageRoles?: Record<string, PageRole>;\n  /**\n   * Optional page name to filter patterns by matching page role title\n   * @maxLength 200\n   */\n  pageName?: string;\n  /**\n   * Query param mapped to body, editor/site\n   * @maxLength 200\n   */\n  viewMode?: string;\n  /**\n   * Query param mapped to body, unique for Wix code app\n   * @format GUID\n   */\n  gridAppId?: string | null;\n}\n\nexport interface Config {\n  /** Map of URL patterns to their configurations. The key is the URL pattern (e.g., `/{title}`) and the value contains the pattern configuration. */\n  patterns?: Record<string, Pattern>;\n  /** Maps rule ID → PageRule (filter + variant page role). */\n  rules?: Record<string, PageRule>;\n  /** Maps original page role ID → ordered rule IDs. First matching rule wins. */\n  roleVariations?: Record<string, any[]>;\n}\n\nexport interface Pattern {\n  /**\n   * Page role identifier that links this pattern to a specific page template.\n   * @maxLength 200\n   */\n  pageRole?: string;\n  /**\n   * Title pattern with field interpolation (e.g., \"{title}, {author} - {category}\").\n   * Increased to 50000 to support complex title templates with many interpolated fields and long text content.\n   * @maxLength 50000\n   */\n  title?: string;\n  /** Configuration specifying which collection to query and any filters to apply. */\n  config?: PatternConfig;\n  /** SEO meta tags to be included in the page head. Keys are meta tag names, values are the content. */\n  seoMetaTags?: Record<string, string>;\n}\n\nexport interface PatternConfig {\n  /**\n   * Name of the Wix Data collection to query for dynamic content.\n   * @maxLength 200\n   */\n  collection?: string;\n  /** Filter criteria to apply when querying the collection. Uses MongoDB-style query syntax to limit which items generate routes. */\n  filter?: Record<string, any> | null;\n  /** Indicates if URLs in sitemap should be turned to lowercase. Defaults to true if not set. */\n  lowercase?: boolean | null;\n  /**\n   * The field id that gets added to DataCollection and DataItems.\n   * Indicates that page links is a slug based and items should be retrieved by slug fields present in the pattern.\n   * @maxLength 1000\n   */\n  pageLinkId?: string | null;\n  /**\n   * Sort specification for query results. Each struct contains field name and direction (asc/desc).\n   * @maxSize 32\n   */\n  sort?: Record<string, any>[] | null;\n  /** Page size for pagination. */\n  pageSize?: number | null;\n  /** SEO v2 flag. */\n  seoV2?: boolean | null;\n  /** Cursor-based pagination flag. */\n  cursor?: boolean | null;\n  /**\n   * Dataset includes array for passthrough config.\n   * @maxSize 100\n   * @maxLength 1000\n   */\n  includes?: string[];\n  /**\n   * Field groups to include in query results. Currently used only in App Collections.\n   * Please refer to app collection documentation or collection field definitions for a list of valid values.\n   * @maxSize 100\n   * @maxLength 100\n   */\n  includeFieldGroups?: string[];\n}\n\n/** A variant rule: if filter matches the fetched data item, use page_role instead of the original. */\nexport interface PageRule {\n  /**\n   * Variant page role ID to return when this rule matches.\n   * @maxLength 200\n   */\n  pageRole?: string;\n  /** Wix Data filter evaluated against the fetched item. */\n  filter?: Record<string, any> | null;\n  /**\n   * Human-readable rule name (for debugging/logging).\n   * @maxLength 200\n   */\n  name?: string | null;\n}\n\nexport interface PageRole {\n  /**\n   * Page role ID that uniquely identifies the page template.\n   * @maxLength 200\n   */\n  _id?: string;\n  /**\n   * Human-readable title for the page role.\n   * @maxLength 200\n   */\n  title?: string;\n}\n\nexport interface GetRouterSitemapCountResponse {\n  /** List of count results grouped by page name. */\n  result?: RouterCountItem[];\n}\n\nexport interface RouterCountItem {\n  /**\n   * Name of the dynamic page template.\n   * @maxLength 200\n   */\n  pageName?: string;\n  /** Number of inner routes for the given page. Capped at 1,000 for performance. */\n  count?: number;\n}\n\nexport interface GetRouterSitemapRequest {\n  /**\n   * Full URL to the inner route\n   * @maxLength 2048\n   */\n  fullUrl?: string;\n  /**\n   * Router prefix (TPA page ID for TPA pages)\n   * @maxLength 2048\n   */\n  routerPrefix?: string;\n  /**\n   * Optional page name to filter patterns by matching page role title\n   * @maxLength 2048\n   */\n  pageName?: string;\n  /** Config containing request patterns, e.g. '/{title}' */\n  config?: Config;\n  /** Map of page roles containing page ID and title of each role */\n  pageRoles?: Record<string, PageRole>;\n  /**\n   * Query param mapped to body, editor/site\n   * @maxLength 200\n   */\n  viewMode?: string;\n  /**\n   * Query param mapped to body, unique for Wix code app\n   * @format GUID\n   */\n  gridAppId?: string | null;\n}\n\nexport interface GetRouterSitemapResponse {\n  /** List of sitemap entries containing URLs and metadata for dynamic pages. */\n  result?: RouterRouteItem[];\n}\n\nexport interface RouterRouteItem {\n  /**\n   * URL to inner route relative to current domain\n   * @maxLength 500\n   */\n  url?: string;\n  /**\n   * Dynamic page name\n   * @maxLength 200\n   */\n  pageName?: string;\n  /**\n   * Title of the specific route, typically derived from collection data.\n   * @maxLength 200\n   */\n  title?: string;\n  /**\n   * Change frequency for sitemap SEO purposes (e.g., `daily`, `weekly`, `monthly`).\n   * @maxLength 100\n   */\n  changeFrequency?: string;\n  /**\n   * Last modified timestamp in ISO 8601 format.\n   * @maxLength 100\n   */\n  lastModified?: string | null;\n  /** Priority for sitemap SEO purposes (0.0 to 1.0). */\n  priority?: number;\n}\n\nexport interface GetRouterPagesRequest {\n  /**\n   * Complete URL to the inner route. Used for context-aware processing and as a base for relative URL resolution.\n   * Increased to 8192 to accommodate URLs with extensive query parameters (tracking, analytics, UTM params, etc.)\n   * @maxLength 8192\n   */\n  fullUrl?: string;\n  /**\n   * Router prefix (TPA page ID for TPA pages)\n   * @maxLength 2048\n   */\n  routerPrefix?: string;\n  /**\n   * Inner route suffix containing the dynamic part of the URL pattern. For example, `/{title}` or `/category/{category}/post/{slug}`.\n   * Increased to 8192 to match full_url capacity for complex dynamic routes\n   * @maxLength 8192\n   */\n  routerSuffix?: string;\n  /** Additional request information including form factor (desktop/mobile) for device-appropriate routing. */\n  requestInfo?: RequestInfo;\n  /** Config containing request patterns, e.g. '/{title}' */\n  config?: Config;\n  /** Map of page roles containing page ID and title of each role */\n  pageRoles?: Record<string, PageRole>;\n  /**\n   * Query param mapped to body, editor/site\n   * @maxLength 200\n   */\n  viewMode?: string;\n  /**\n   * Query param mapped to body, unique for Wix code app\n   * @format GUID\n   */\n  gridAppId?: string | null;\n}\n\nexport interface RequestInfo {\n  /**\n   * Device form factor, typically `desktop` or `mobile`. Used to serve device-appropriate page layouts.\n   * @maxLength 200\n   */\n  formFactor?: string;\n}\n\nexport interface GetRouterPagesResponse {\n  /** Page resolution result containing status, data, and metadata. */\n  result?: RouterPagesResult;\n}\n\nexport interface RouterPagesResult {\n  /** HTTP status code of the page (200, 302, 404) */\n  status?: number;\n  /**\n   * Name of the dynamic page template that should be used for rendering.\n   * @maxLength 200\n   */\n  page?: string;\n  /** Application router data available only to internal Wix apps. Contains system-level and administrative information. */\n  data?: Record<string, any> | null;\n  /** SEO and metadata information for the page head section. */\n  head?: RouterPageHead;\n  /**\n   * Error message when status indicates an error condition.\n   * @maxLength 500\n   */\n  message?: string;\n  /**\n   * Target URL for redirects when status is 302.\n   * @maxLength 2048\n   */\n  redirectUrl?: string;\n}\n\nexport interface RouterPageHead {\n  /**\n   * Page title for SEO and browser display.\n   * @maxLength 200\n   */\n  title?: string;\n  /** Meta tags for SEO optimization. Keys are meta tag names, values are the content. */\n  metaTags?: Record<string, string>;\n  /**\n   * Page description for SEO. Extracted from seoMetaTags if present.\n   * @maxLength 5000\n   */\n  description?: string;\n  /**\n   * Keywords for SEO. Extracted from seoMetaTags if present.\n   * @maxLength 5000\n   */\n  keywords?: string;\n  /**\n   * NoIndex directive for search engines. Extracted from seoMetaTags if present.\n   * @maxLength 500\n   */\n  noIndex?: string;\n}\n\n/** Viewer GET request: .r parameter containing {urlParams, body} envelope. */\nexport interface GetRouterPagesCachedRequest {\n  /** URL parameters from the viewer's query string. */\n  urlParams?: GetRouterPagesCachedUrlParams;\n  /** Request body from the viewer's envelope. */\n  body?: GetRouterPagesRequest;\n}\n\nexport interface GetRouterPagesCachedUrlParams {\n  /**\n   * Unique for Wix code app\n   * @format GUID\n   */\n  gridAppId?: string | null;\n  /**\n   * Editor/site\n   * @maxLength 200\n   */\n  viewMode?: string;\n}\n\nexport interface GetDraftPreviewTokenRequest {\n  /**\n   * Wix Data collection ID to get a draft preview key for.\n   * @maxLength 256\n   */\n  collectionId?: string;\n}\n\nexport interface GetDraftPreviewTokenResponse {\n  /**\n   * Draft preview token.\n   * @maxLength 10000\n   */\n  token?: string;\n}\n\n/**\n * Returns the count of sitemap entries grouped by page name.\n *\n * Use this endpoint for analytics dashboards, capacity planning, and understanding\n * the scale of dynamic content without retrieving actual URLs. Results are capped\n * at 1,000 items per pattern for performance.\n * @public\n * @documentationMaturity preview\n * @permissionId dynamic_page_router:v1:page:get_router_sitemap_count\n * @applicableIdentity APP\n * @fqn wix.dynamic_page_router.v1.DynamicPageRouter.GetRouterSitemapCount\n */\nexport async function getRouterSitemapCount(\n  options?: GetRouterSitemapCountOptions\n): Promise<\n  NonNullablePaths<\n    GetRouterSitemapCountResponse,\n    `result` | `result.${number}.pageName` | `result.${number}.count`,\n    4\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    routerPrefix: options?.routerPrefix,\n    config: options?.config,\n    pageRoles: options?.pageRoles,\n    pageName: options?.pageName,\n    viewMode: options?.viewMode,\n    gridAppId: options?.gridAppId,\n  });\n\n  const reqOpts =\n    ambassadorWixDynamicPageRouterV1Page.getRouterSitemapCount(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          routerPrefix: '$[0].routerPrefix',\n          config: '$[0].config',\n          pageRoles: '$[0].pageRoles',\n          pageName: '$[0].pageName',\n          viewMode: '$[0].viewMode',\n          gridAppId: '$[0].gridAppId',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface GetRouterSitemapCountOptions {\n  /**\n   * Router prefix that identifies the page type or origin. For TPA (Third-Party Application) pages, this contains the TPA page ID.\n   * @maxLength 2048\n   */\n  routerPrefix?: string;\n  /** Config containing request patterns, e.g. '/{title}' */\n  config?: Config;\n  /** Map of page roles containing page ID and title of each role */\n  pageRoles?: Record<string, PageRole>;\n  /**\n   * Optional page name to filter patterns by matching page role title\n   * @maxLength 200\n   */\n  pageName?: string;\n  /**\n   * Query param mapped to body, editor/site\n   * @maxLength 200\n   */\n  viewMode?: string;\n  /**\n   * Query param mapped to body, unique for Wix code app\n   * @format GUID\n   */\n  gridAppId?: string | null;\n}\n\n/**\n * Returns sitemap entries containing URLs, page names, and page titles.\n *\n * Use this endpoint to generate XML sitemaps for search engines, build navigation\n * menus, or provide URL listings to external systems. The `fullUrl` parameter\n * provides context for scoping sitemap generation to specific domains or URL hierarchies.\n * @public\n * @documentationMaturity preview\n * @permissionId dynamic_page_router:v1:page:get_router_sitemap\n * @applicableIdentity APP\n * @fqn wix.dynamic_page_router.v1.DynamicPageRouter.GetRouterSitemap\n */\nexport async function getRouterSitemap(\n  options?: GetRouterSitemapOptions\n): Promise<\n  NonNullablePaths<\n    GetRouterSitemapResponse,\n    | `result`\n    | `result.${number}.url`\n    | `result.${number}.pageName`\n    | `result.${number}.title`\n    | `result.${number}.changeFrequency`\n    | `result.${number}.priority`,\n    4\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    fullUrl: options?.fullUrl,\n    routerPrefix: options?.routerPrefix,\n    pageName: options?.pageName,\n    config: options?.config,\n    pageRoles: options?.pageRoles,\n    viewMode: options?.viewMode,\n    gridAppId: options?.gridAppId,\n  });\n\n  const reqOpts =\n    ambassadorWixDynamicPageRouterV1Page.getRouterSitemap(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          fullUrl: '$[0].fullUrl',\n          routerPrefix: '$[0].routerPrefix',\n          pageName: '$[0].pageName',\n          config: '$[0].config',\n          pageRoles: '$[0].pageRoles',\n          viewMode: '$[0].viewMode',\n          gridAppId: '$[0].gridAppId',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface GetRouterSitemapOptions {\n  /**\n   * Full URL to the inner route\n   * @maxLength 2048\n   */\n  fullUrl?: string;\n  /**\n   * Router prefix (TPA page ID for TPA pages)\n   * @maxLength 2048\n   */\n  routerPrefix?: string;\n  /**\n   * Optional page name to filter patterns by matching page role title\n   * @maxLength 2048\n   */\n  pageName?: string;\n  /** Config containing request patterns, e.g. '/{title}' */\n  config?: Config;\n  /** Map of page roles containing page ID and title of each role */\n  pageRoles?: Record<string, PageRole>;\n  /**\n   * Query param mapped to body, editor/site\n   * @maxLength 200\n   */\n  viewMode?: string;\n  /**\n   * Query param mapped to body, unique for Wix code app\n   * @format GUID\n   */\n  gridAppId?: string | null;\n}\n\n/**\n * Returns comprehensive page information for a specific route.\n * Called by the editor via POST with flat body + query params.\n * @public\n * @documentationMaturity preview\n * @permissionId dynamic_page_router:v1:page:get_router_pages\n * @applicableIdentity APP\n * @fqn wix.dynamic_page_router.v1.DynamicPageRouter.GetRouterPages\n */\nexport async function getRouterPages(\n  options?: GetRouterPagesOptions\n): Promise<\n  NonNullablePaths<\n    GetRouterPagesResponse,\n    | `result.status`\n    | `result.page`\n    | `result.head.title`\n    | `result.head.description`\n    | `result.head.keywords`\n    | `result.head.noIndex`\n    | `result.message`\n    | `result.redirectUrl`,\n    4\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    fullUrl: options?.fullUrl,\n    routerPrefix: options?.routerPrefix,\n    routerSuffix: options?.routerSuffix,\n    requestInfo: options?.requestInfo,\n    config: options?.config,\n    pageRoles: options?.pageRoles,\n    viewMode: options?.viewMode,\n    gridAppId: options?.gridAppId,\n  });\n\n  const reqOpts = ambassadorWixDynamicPageRouterV1Page.getRouterPages(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          fullUrl: '$[0].fullUrl',\n          routerPrefix: '$[0].routerPrefix',\n          routerSuffix: '$[0].routerSuffix',\n          requestInfo: '$[0].requestInfo',\n          config: '$[0].config',\n          pageRoles: '$[0].pageRoles',\n          viewMode: '$[0].viewMode',\n          gridAppId: '$[0].gridAppId',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface GetRouterPagesOptions {\n  /**\n   * Complete URL to the inner route. Used for context-aware processing and as a base for relative URL resolution.\n   * Increased to 8192 to accommodate URLs with extensive query parameters (tracking, analytics, UTM params, etc.)\n   * @maxLength 8192\n   */\n  fullUrl?: string;\n  /**\n   * Router prefix (TPA page ID for TPA pages)\n   * @maxLength 2048\n   */\n  routerPrefix?: string;\n  /**\n   * Inner route suffix containing the dynamic part of the URL pattern. For example, `/{title}` or `/category/{category}/post/{slug}`.\n   * Increased to 8192 to match full_url capacity for complex dynamic routes\n   * @maxLength 8192\n   */\n  routerSuffix?: string;\n  /** Additional request information including form factor (desktop/mobile) for device-appropriate routing. */\n  requestInfo?: RequestInfo;\n  /** Config containing request patterns, e.g. '/{title}' */\n  config?: Config;\n  /** Map of page roles containing page ID and title of each role */\n  pageRoles?: Record<string, PageRole>;\n  /**\n   * Query param mapped to body, editor/site\n   * @maxLength 200\n   */\n  viewMode?: string;\n  /**\n   * Query param mapped to body, unique for Wix code app\n   * @format GUID\n   */\n  gridAppId?: string | null;\n}\n\n/**\n * Returns comprehensive page information for a specific route (cacheable).\n * Called by the viewer via GET with .r parameter containing {urlParams, body} envelope.\n * @public\n * @documentationMaturity preview\n * @permissionId dynamic_page_router:v1:page:get_router_pages\n * @applicableIdentity APP\n * @fqn wix.dynamic_page_router.v1.DynamicPageRouter.GetRouterPagesCached\n */\nexport async function getRouterPagesCached(\n  options?: GetRouterPagesCachedOptions\n): Promise<\n  NonNullablePaths<\n    GetRouterPagesResponse,\n    | `result.status`\n    | `result.page`\n    | `result.head.title`\n    | `result.head.description`\n    | `result.head.keywords`\n    | `result.head.noIndex`\n    | `result.message`\n    | `result.redirectUrl`,\n    4\n  >\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    urlParams: options?.urlParams,\n    body: options?.body,\n  });\n\n  const reqOpts =\n    ambassadorWixDynamicPageRouterV1Page.getRouterPagesCached(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          urlParams: '$[0].urlParams',\n          body: '$[0].body',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface GetRouterPagesCachedOptions {\n  /** URL parameters from the viewer's query string. */\n  urlParams?: GetRouterPagesCachedUrlParams;\n  /** Request body from the viewer's envelope. */\n  body?: GetRouterPagesRequest;\n}\n\n/**\n * Returns the preview token used for draft collection previews.\n * @public\n * @documentationMaturity preview\n * @permissionId dynamic_page_router:v1:page:get_draft_preview_token\n * @applicableIdentity APP\n * @fqn wix.dynamic_page_router.v1.DynamicPageRouter.GetDraftPreviewToken\n */\nexport async function getDraftPreviewToken(\n  options?: GetDraftPreviewTokenOptions\n): Promise<NonNullablePaths<GetDraftPreviewTokenResponse, `token`, 2>> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    collectionId: options?.collectionId,\n  });\n\n  const reqOpts =\n    ambassadorWixDynamicPageRouterV1Page.getDraftPreviewToken(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { collectionId: '$[0].collectionId' },\n        singleArgumentUnchanged: false,\n      },\n      ['options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface GetDraftPreviewTokenOptions {\n  /**\n   * Wix Data collection ID to get a draft preview key for.\n   * @maxLength 256\n   */\n  collectionId?: string;\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixDynamicPageRouterV1DynamicPageRouterUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'editor._base_domain_': [\n      {\n        srcPath: '/_api/dynamic-pages-router',\n        destPath: '',\n      },\n      {\n        srcPath: '/_api/dynamic-page-router',\n        destPath: '',\n      },\n    ],\n    'blocks._base_domain_': [\n      {\n        srcPath: '/_api/dynamic-pages-router',\n        destPath: '',\n      },\n      {\n        srcPath: '/_api/dynamic-page-router',\n        destPath: '',\n      },\n    ],\n    'create.editorx': [\n      {\n        srcPath: '/_api/dynamic-pages-router',\n        destPath: '',\n      },\n      {\n        srcPath: '/_api/dynamic-page-router',\n        destPath: '',\n      },\n    ],\n    _: [\n      {\n        srcPath: '/_api/dynamic-pages-router',\n        destPath: '',\n      },\n      {\n        srcPath: '/_api/dynamic-page-router',\n        destPath: '',\n      },\n    ],\n    'dev._base_domain_': [\n      {\n        srcPath: '/_api/dynamic-pages-router',\n        destPath: '',\n      },\n      {\n        srcPath: '/_api/dynamic-page-router',\n        destPath: '',\n      },\n    ],\n    'api._api_base_domain_': [\n      {\n        srcPath: '/dynamic-pages-router',\n        destPath: '',\n      },\n      {\n        srcPath: '/dynamic-page-router',\n        destPath: '',\n      },\n    ],\n    'www._base_domain_': [\n      {\n        srcPath: '/_api/dynamic-pages-router',\n        destPath: '',\n      },\n      {\n        srcPath: '/_api/dynamic-page-router',\n        destPath: '',\n      },\n    ],\n    'bo._base_domain_': [\n      {\n        srcPath: '/_api/dynamic-pages-router',\n        destPath: '',\n      },\n      {\n        srcPath: '/_api/dynamic-page-router',\n        destPath: '',\n      },\n    ],\n    'wixbo.ai': [\n      {\n        srcPath: '/_api/dynamic-pages-router',\n        destPath: '',\n      },\n      {\n        srcPath: '/_api/dynamic-page-router',\n        destPath: '',\n      },\n    ],\n    'wix-bo.com': [\n      {\n        srcPath: '/_api/dynamic-pages-router',\n        destPath: '',\n      },\n      {\n        srcPath: '/_api/dynamic-page-router',\n        destPath: '',\n      },\n    ],\n    'manage._base_domain_': [\n      {\n        srcPath: '/_api/dynamic-page-router',\n        destPath: '',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/dynamic-page-router/v1/pages',\n        destPath: '/v1/pages',\n      },\n      {\n        srcPath: '/dynamic-page-router/v1/sitemap',\n        destPath: '/v1/sitemap',\n      },\n      {\n        srcPath: '/dynamic-page-router/v1/draft-preview-token',\n        destPath: '/v1/draft-preview-token',\n      },\n    ],\n    '*.dev.wix-code.com': [\n      {\n        srcPath: '/dynamic-page-router/v1/pages',\n        destPath: '/v1/pages',\n      },\n      {\n        srcPath: '/dynamic-page-router/v1/sitemap',\n        destPath: '/v1/sitemap',\n      },\n      {\n        srcPath: '/dynamic-page-router/v1/draft-preview-token',\n        destPath: '/v1/draft-preview-token',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_dynamic-page-router_pages';\n\n/**\n * Returns the count of sitemap entries grouped by page name.\n *\n * Use this endpoint for analytics dashboards, capacity planning, and understanding\n * the scale of dynamic content without retrieving actual URLs. Results are capped\n * at 1,000 items per pattern for performance.\n */\nexport function getRouterSitemapCount(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __getRouterSitemapCount({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.dynamic_page_router.v1.page',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.dynamic_page_router.v1.DynamicPageRouter.GetRouterSitemapCount',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixDynamicPageRouterV1DynamicPageRouterUrl({\n        protoPath: '/v1/sitemapCount',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __getRouterSitemapCount;\n}\n\n/**\n * Returns sitemap entries containing URLs, page names, and page titles.\n *\n * Use this endpoint to generate XML sitemaps for search engines, build navigation\n * menus, or provide URL listings to external systems. The `fullUrl` parameter\n * provides context for scoping sitemap generation to specific domains or URL hierarchies.\n */\nexport function getRouterSitemap(payload: object): RequestOptionsFactory<any> {\n  function __getRouterSitemap({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.dynamic_page_router.v1.page',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.dynamic_page_router.v1.DynamicPageRouter.GetRouterSitemap',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixDynamicPageRouterV1DynamicPageRouterUrl({\n        protoPath: '/v1/sitemap',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [{ path: 'result.priority' }],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getRouterSitemap;\n}\n\n/**\n * Returns comprehensive page information for a specific route.\n * Called by the editor via POST with flat body + query params.\n */\nexport function getRouterPages(payload: object): RequestOptionsFactory<any> {\n  function __getRouterPages({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.dynamic_page_router.v1.page',\n      method: 'POST' as any,\n      methodFqn: 'wix.dynamic_page_router.v1.DynamicPageRouter.GetRouterPages',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixDynamicPageRouterV1DynamicPageRouterUrl({\n        protoPath: '/v1/pages',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __getRouterPages;\n}\n\n/**\n * Returns comprehensive page information for a specific route (cacheable).\n * Called by the viewer via GET with .r parameter containing {urlParams, body} envelope.\n */\nexport function getRouterPagesCached(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __getRouterPagesCached({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.dynamic_page_router.v1.page',\n      method: 'GET' as any,\n      methodFqn:\n        'wix.dynamic_page_router.v1.DynamicPageRouter.GetRouterPagesCached',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixDynamicPageRouterV1DynamicPageRouterUrl({\n        protoPath: '/v1/pages',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload, true),\n    };\n\n    return metadata;\n  }\n\n  return __getRouterPagesCached;\n}\n\n/** Returns the preview token used for draft collection previews. */\nexport function getDraftPreviewToken(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __getDraftPreviewToken({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.dynamic_page_router.v1.page',\n      method: 'POST' as any,\n      methodFqn:\n        'wix.dynamic_page_router.v1.DynamicPageRouter.GetDraftPreviewToken',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveWixDynamicPageRouterV1DynamicPageRouterUrl({\n        protoPath: '/v1/draft-preview-token',\n        data: payload,\n        host,\n      }),\n      data: payload,\n    };\n\n    return metadata;\n  }\n\n  return __getDraftPreviewToken;\n}\n","import { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n  GetDraftPreviewTokenOptions,\n  GetDraftPreviewTokenResponse,\n  GetRouterPagesCachedOptions,\n  GetRouterPagesOptions,\n  GetRouterPagesResponse,\n  GetRouterSitemapCountOptions,\n  GetRouterSitemapCountResponse,\n  GetRouterSitemapOptions,\n  GetRouterSitemapResponse,\n  getDraftPreviewToken as universalGetDraftPreviewToken,\n  getRouterPages as universalGetRouterPages,\n  getRouterPagesCached as universalGetRouterPagesCached,\n  getRouterSitemap as universalGetRouterSitemap,\n  getRouterSitemapCount as universalGetRouterSitemapCount,\n} from './dynamic-page-router-v1-page-pages.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/dynamic-page-router' };\n\nexport function getRouterSitemapCount(\n  httpClient: HttpClient\n): GetRouterSitemapCountSignature {\n  return (options?: GetRouterSitemapCountOptions) =>\n    universalGetRouterSitemapCount(\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetRouterSitemapCountSignature {\n  /**\n   * Returns the count of sitemap entries grouped by page name.\n   *\n   * Use this endpoint for analytics dashboards, capacity planning, and understanding\n   * the scale of dynamic content without retrieving actual URLs. Results are capped\n   * at 1,000 items per pattern for performance.\n   */\n  (options?: GetRouterSitemapCountOptions): Promise<\n    NonNullablePaths<\n      GetRouterSitemapCountResponse,\n      `result` | `result.${number}.pageName` | `result.${number}.count`,\n      4\n    >\n  >;\n}\n\nexport function getRouterSitemap(\n  httpClient: HttpClient\n): GetRouterSitemapSignature {\n  return (options?: GetRouterSitemapOptions) =>\n    universalGetRouterSitemap(\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetRouterSitemapSignature {\n  /**\n   * Returns sitemap entries containing URLs, page names, and page titles.\n   *\n   * Use this endpoint to generate XML sitemaps for search engines, build navigation\n   * menus, or provide URL listings to external systems. The `fullUrl` parameter\n   * provides context for scoping sitemap generation to specific domains or URL hierarchies.\n   */\n  (options?: GetRouterSitemapOptions): Promise<\n    NonNullablePaths<\n      GetRouterSitemapResponse,\n      | `result`\n      | `result.${number}.url`\n      | `result.${number}.pageName`\n      | `result.${number}.title`\n      | `result.${number}.changeFrequency`\n      | `result.${number}.priority`,\n      4\n    >\n  >;\n}\n\nexport function getRouterPages(\n  httpClient: HttpClient\n): GetRouterPagesSignature {\n  return (options?: GetRouterPagesOptions) =>\n    universalGetRouterPages(\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetRouterPagesSignature {\n  /**\n   * Returns comprehensive page information for a specific route.\n   * Called by the editor via POST with flat body + query params.\n   */\n  (options?: GetRouterPagesOptions): Promise<\n    NonNullablePaths<\n      GetRouterPagesResponse,\n      | `result.status`\n      | `result.page`\n      | `result.head.title`\n      | `result.head.description`\n      | `result.head.keywords`\n      | `result.head.noIndex`\n      | `result.message`\n      | `result.redirectUrl`,\n      4\n    >\n  >;\n}\n\nexport function getRouterPagesCached(\n  httpClient: HttpClient\n): GetRouterPagesCachedSignature {\n  return (options?: GetRouterPagesCachedOptions) =>\n    universalGetRouterPagesCached(\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetRouterPagesCachedSignature {\n  /**\n   * Returns comprehensive page information for a specific route (cacheable).\n   * Called by the viewer via GET with .r parameter containing {urlParams, body} envelope.\n   */\n  (options?: GetRouterPagesCachedOptions): Promise<\n    NonNullablePaths<\n      GetRouterPagesResponse,\n      | `result.status`\n      | `result.page`\n      | `result.head.title`\n      | `result.head.description`\n      | `result.head.keywords`\n      | `result.head.noIndex`\n      | `result.message`\n      | `result.redirectUrl`,\n      4\n    >\n  >;\n}\n\nexport function getDraftPreviewToken(\n  httpClient: HttpClient\n): GetDraftPreviewTokenSignature {\n  return (options?: GetDraftPreviewTokenOptions) =>\n    universalGetDraftPreviewToken(\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetDraftPreviewTokenSignature {\n  /**\n   * Returns the preview token used for draft collection previews.\n   */\n  (options?: GetDraftPreviewTokenOptions): Promise<\n    NonNullablePaths<GetDraftPreviewTokenResponse, `token`, 2>\n  >;\n}\n\nexport {\n  Config,\n  GetDraftPreviewTokenOptions,\n  GetDraftPreviewTokenRequest,\n  GetDraftPreviewTokenResponse,\n  GetRouterPagesCachedOptions,\n  GetRouterPagesCachedRequest,\n  GetRouterPagesCachedUrlParams,\n  GetRouterPagesOptions,\n  GetRouterPagesRequest,\n  GetRouterPagesResponse,\n  GetRouterSitemapCountOptions,\n  GetRouterSitemapCountRequest,\n  GetRouterSitemapCountResponse,\n  GetRouterSitemapOptions,\n  GetRouterSitemapRequest,\n  GetRouterSitemapResponse,\n  Page,\n  PageRole,\n  PageRule,\n  Pattern,\n  PatternConfig,\n  RequestInfo,\n  RouterCountItem,\n  RouterPageHead,\n  RouterPagesResult,\n  RouterRouteItem,\n} from './dynamic-page-router-v1-page-pages.universal.js';\n","import {\n  getRouterSitemapCount as publicGetRouterSitemapCount,\n  getRouterSitemap as publicGetRouterSitemap,\n  getRouterPages as publicGetRouterPages,\n  getRouterPagesCached as publicGetRouterPagesCached,\n  getDraftPreviewToken as publicGetDraftPreviewToken,\n} from './dynamic-page-router-v1-page-pages.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const getRouterSitemapCount: MaybeContext<\n  BuildRESTFunction<typeof publicGetRouterSitemapCount> &\n    typeof publicGetRouterSitemapCount\n> = /*#__PURE__*/ createRESTModule(publicGetRouterSitemapCount);\nexport const getRouterSitemap: MaybeContext<\n  BuildRESTFunction<typeof publicGetRouterSitemap> &\n    typeof publicGetRouterSitemap\n> = /*#__PURE__*/ createRESTModule(publicGetRouterSitemap);\nexport const getRouterPages: MaybeContext<\n  BuildRESTFunction<typeof publicGetRouterPages> & typeof publicGetRouterPages\n> = /*#__PURE__*/ createRESTModule(publicGetRouterPages);\nexport const getRouterPagesCached: MaybeContext<\n  BuildRESTFunction<typeof publicGetRouterPagesCached> &\n    typeof publicGetRouterPagesCached\n> = /*#__PURE__*/ createRESTModule(publicGetRouterPagesCached);\nexport const getDraftPreviewToken: MaybeContext<\n  BuildRESTFunction<typeof publicGetDraftPreviewToken> &\n    typeof publicGetDraftPreviewToken\n> = /*#__PURE__*/ createRESTModule(publicGetDraftPreviewToken);\n\nexport {\n  Page,\n  GetRouterSitemapCountRequest,\n  Config,\n  Pattern,\n  PatternConfig,\n  PageRule,\n  PageRole,\n  GetRouterSitemapCountResponse,\n  RouterCountItem,\n  GetRouterSitemapRequest,\n  GetRouterSitemapResponse,\n  RouterRouteItem,\n  GetRouterPagesRequest,\n  RequestInfo,\n  GetRouterPagesResponse,\n  RouterPagesResult,\n  RouterPageHead,\n  GetRouterPagesCachedRequest,\n  GetRouterPagesCachedUrlParams,\n  GetDraftPreviewTokenRequest,\n  GetDraftPreviewTokenResponse,\n  GetRouterSitemapCountOptions,\n  GetRouterSitemapOptions,\n  GetRouterPagesOptions,\n  GetRouterPagesCachedOptions,\n  GetDraftPreviewTokenOptions,\n} from './dynamic-page-router-v1-page-pages.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,kDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,kBAAkB;AAAA,MAChB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAA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;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAwBO,SAASC,gBACd,YACyB;AACzB,SAAO,CAAC,YACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAuBO,SAASC,sBACd,YAC+B;AAC/B,SAAO,CAAC,YACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;AAuBO,SAASC,sBACd,YAC+B;AAC/B,SAAO,CAAC,YACNA;AAAA,IACE;AAAA;AAAA,IAEA,EAAE,WAAW;AAAA,EACf;AACJ;;;ACnJA,SAAS,wBAAwB;AAG1B,IAAMC,yBAGK,iCAAiBA,sBAA2B;AACvD,IAAMC,oBAGK,iCAAiBA,iBAAsB;AAClD,IAAMC,kBAEK,iCAAiBA,eAAoB;AAChD,IAAMC,wBAGK,iCAAiBA,qBAA0B;AACtD,IAAMC,wBAGK,iCAAiBA,qBAA0B;","names":["payload","getRouterSitemapCount","getRouterSitemap","getRouterPages","getRouterPagesCached","getDraftPreviewToken","getRouterSitemapCount","getRouterSitemap","getRouterPages","getRouterPagesCached","getDraftPreviewToken","getRouterSitemapCount","getRouterSitemap","getRouterPages","getRouterPagesCached","getDraftPreviewToken"]}