@brandlab-digital/site-core 3.12.1 → 3.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/README.md +80 -0
  2. package/dist/business.d.ts +81 -0
  3. package/dist/business.d.ts.map +1 -1
  4. package/dist/business.js +116 -0
  5. package/dist/business.js.map +1 -1
  6. package/dist/council-register.d.ts +53 -0
  7. package/dist/council-register.d.ts.map +1 -0
  8. package/dist/council-register.js +113 -0
  9. package/dist/council-register.js.map +1 -0
  10. package/dist/google-business-reviews-refresh.d.ts +93 -0
  11. package/dist/google-business-reviews-refresh.d.ts.map +1 -0
  12. package/dist/google-business-reviews-refresh.js +140 -0
  13. package/dist/google-business-reviews-refresh.js.map +1 -0
  14. package/dist/google-business-reviews.d.ts +1 -0
  15. package/dist/google-business-reviews.d.ts.map +1 -1
  16. package/dist/google-business-reviews.js +1 -0
  17. package/dist/google-business-reviews.js.map +1 -1
  18. package/dist/jobs.d.ts +71 -0
  19. package/dist/jobs.d.ts.map +1 -0
  20. package/dist/jobs.js +107 -0
  21. package/dist/jobs.js.map +1 -0
  22. package/dist/locations.d.ts +10 -0
  23. package/dist/locations.d.ts.map +1 -1
  24. package/dist/locations.js +15 -0
  25. package/dist/locations.js.map +1 -1
  26. package/dist/navigation.d.ts +37 -1
  27. package/dist/navigation.d.ts.map +1 -1
  28. package/dist/navigation.js +107 -2
  29. package/dist/navigation.js.map +1 -1
  30. package/dist/page-titles.d.ts +71 -0
  31. package/dist/page-titles.d.ts.map +1 -0
  32. package/dist/page-titles.js +161 -0
  33. package/dist/page-titles.js.map +1 -0
  34. package/dist/project.d.ts +76 -0
  35. package/dist/project.d.ts.map +1 -1
  36. package/dist/project.js +177 -1
  37. package/dist/project.js.map +1 -1
  38. package/dist/section-order.d.ts +47 -2
  39. package/dist/section-order.d.ts.map +1 -1
  40. package/dist/section-order.js +96 -3
  41. package/dist/section-order.js.map +1 -1
  42. package/dist/site.d.ts +9 -0
  43. package/dist/site.d.ts.map +1 -1
  44. package/dist/site.js +19 -0
  45. package/dist/site.js.map +1 -1
  46. package/dist/strategy.d.ts +172 -0
  47. package/dist/strategy.d.ts.map +1 -1
  48. package/dist/strategy.js +300 -2
  49. package/dist/strategy.js.map +1 -1
  50. package/package.json +13 -1
package/dist/site.d.ts CHANGED
@@ -25,6 +25,15 @@ export type BrandlabEnvironment = Readonly<Record<string, string | undefined>>;
25
25
  * environment fails closed to `preview`: never analytics, never indexable.
26
26
  */
27
27
  export declare function resolveBrandlabDeployment(environment: BrandlabEnvironment): BrandlabDeployment;
28
+ /**
29
+ * The search and answer crawlers every production site keeps open (3.13.0): neither robots.txt nor a firewall rule
30
+ * may block them (ready-gate check W10). These are their robots.txt user-agent tokens. Meta's crawler is not listed:
31
+ * it has mixed uses, and a site limits it only with a recorded decision.
32
+ */
33
+ export declare const BRANDLAB_SEARCH_CRAWLERS: readonly ["Googlebot", "Bingbot", "OAI-SearchBot", "Applebot", "Claude-SearchBot", "Claude-User", "PerplexityBot"];
34
+ export type BrandlabSearchCrawler = (typeof BRANDLAB_SEARCH_CRAWLERS)[number];
35
+ /** The protected crawler a robots.txt user-agent token names (case-insensitive), if any. */
36
+ export declare function brandlabSearchCrawlerNamed(token: string): BrandlabSearchCrawler | undefined;
28
37
  export interface BrandlabSiteDefinition {
29
38
  /** Public site name: Open Graph `siteName` and the brand guard for templated titles. */
30
39
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"site.d.ts","sourceRoot":"","sources":["../src/site.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,eAAe,CAAA;AAEtB;;;GAGG;AACH,MAAM,MAAM,6BAA6B,GAAG,YAAY,GAAG,SAAS,GAAG,aAAa,CAAA;AAEpF,MAAM,WAAW,kBAAkB;IACjC,2GAA2G;IAC3G,QAAQ,CAAC,WAAW,EAAE,6BAA6B,CAAA;IACnD;;;;OAIG;IACH,QAAQ,CAAC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,MAAM,CAAA;IAC7B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAA;IAC9B,QAAQ,CAAC,kBAAkB,EAAE,QAAQ,CAAC,mBAAmB,CAAC,CAAA;IAC1D,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAA;CACvC;AAyBD,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAElE;AA0BD;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,sBAAsB,GAAG,YAAY,CA+BnF;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,OAAO,EACd,aAAa,EAAE,MAAM,EACrB,KAAK,SAAe,GACnB,OAAO,CAAC,KAAK,IAAI,SAAS,MAAM,EAAE,CAcpC"}
package/dist/site.js CHANGED
@@ -23,6 +23,25 @@ export function resolveBrandlabDeployment(environment) {
23
23
  productionBuild: environment.NODE_ENV === 'production',
24
24
  });
25
25
  }
26
+ /**
27
+ * The search and answer crawlers every production site keeps open (3.13.0): neither robots.txt nor a firewall rule
28
+ * may block them (ready-gate check W10). These are their robots.txt user-agent tokens. Meta's crawler is not listed:
29
+ * it has mixed uses, and a site limits it only with a recorded decision.
30
+ */
31
+ export const BRANDLAB_SEARCH_CRAWLERS = Object.freeze([
32
+ 'Googlebot',
33
+ 'Bingbot',
34
+ 'OAI-SearchBot',
35
+ 'Applebot',
36
+ 'Claude-SearchBot',
37
+ 'Claude-User',
38
+ 'PerplexityBot',
39
+ ]);
40
+ /** The protected crawler a robots.txt user-agent token names (case-insensitive), if any. */
41
+ export function brandlabSearchCrawlerNamed(token) {
42
+ const name = token.trim().toLowerCase();
43
+ return BRANDLAB_SEARCH_CRAWLERS.find((crawler) => crawler.toLowerCase() === name);
44
+ }
26
45
  const SITE_KEYS = new Set([
27
46
  'name',
28
47
  'canonicalUrl',
package/dist/site.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"site.js","sourceRoot":"","sources":["../src/site.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,GAE1B,MAAM,eAAe,CAAA;AAqBtB;;;;;;;;GAQG;AACH,MAAM,UAAU,yBAAyB,CAAC,WAAgC;IACxE,IAAI,CAAC,WAAW,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE,CAAC;QACpD,MAAM,IAAI,SAAS,CAAC,2DAA2D,CAAC,CAAA;IAClF,CAAC;IACD,MAAM,QAAQ,GAAG,CAAC,WAAW,CAAC,UAAU,IAAI,WAAW,CAAC,sBAAsB,CAAC,EAAE,IAAI,EAAE,CAAA;IACvF,MAAM,qBAAqB,GACzB,CAAC,QAAQ,IAAI,QAAQ,KAAK,aAAa;QACrC,CAAC,CAAC,aAAa;QACf,CAAC,CAAC,QAAQ,KAAK,YAAY;YACzB,CAAC,CAAC,YAAY;YACd,CAAC,CAAC,SAAS,CAAA;IACjB,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,WAAW,EAAE,qBAAqB;QAClC,eAAe,EAAE,WAAW,CAAC,QAAQ,KAAK,YAAY;KACvD,CAAC,CAAA;AACJ,CAAC;AAkCD,MAAM,SAAS,GAAG,IAAI,GAAG,CAAC;IACxB,MAAM;IACN,cAAc;IACd,QAAQ;IACR,eAAe;IACf,oBAAoB;IACpB,YAAY;CACb,CAAC,CAAA;AACF,MAAM,gBAAgB,GACpB,wFAAwF,CAAA;AAE1F,SAAS,cAAc,CAAC,KAAc,EAAE,KAAa,EAAE,OAAe;IACpE,IACE,OAAO,KAAK,KAAK,QAAQ;QACzB,CAAC,KAAK,CAAC,IAAI,EAAE;QACb,KAAK,CAAC,IAAI,EAAE,KAAK,KAAK;QACtB,KAAK,CAAC,MAAM,GAAG,OAAO;QACtB,uBAAuB,CAAC,IAAI,CAAC,KAAK,CAAC,EACnC,CAAC;QACD,MAAM,I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preview` are real Vercel deployments. Everything else —\n * `next dev`, a local `next start`, CI and tests — is `development`.\n */\nexport type BrandlabDeploymentEnvironment = 'production' | 'preview' | 'development'\n\nexport interface BrandlabDeployment {\n /** The single gate for production-only behaviour: analytics, contact delivery and Preview restrictions. */\n readonly environment: BrandlabDeploymentEnvironment\n /**\n * An optimised build (`NODE_ENV=production`), on Vercel or locally. Security\n * headers and crawler access follow the build so a local `next start` serves\n * exactly the production headers.\n */\n readonly productionBuild: boolean\n}\n\nexport type BrandlabEnvironment = Readonly<Record<string, string | undefined>>\n\n/**\n * Resolves the deployment once for every consumer (next.config headers,\n * robots, analytics and contact delivery). Server code passes `process.env`;\n * browser code passes `{ NEXT_PUBLIC_VERCEL_ENV: process.env.NEXT_PUBLIC_VERCEL_ENV }`,\n * which `defineBrandlabNextConfig` inlines at build time.\n *\n * `VERCEL_ENV` wins over `NEXT_PUBLIC_VERCEL_ENV`. An unrecognised declared\n * environment fails closed to `preview`: never analytics, never indexable.\n */\nexport function resolveBrandlabDeployment(environment: BrandlabEnvironment): BrandlabDeployment {\n if (!environment || typeof environment !== 'object') {\n throw new TypeError('resolveBrandlabDeployment requires an environment record.')\n }\n const declared = (environment.VERCEL_ENV ?? environment.NEXT_PUBLIC_VERCEL_ENV)?.trim()\n const deploymentEnvironment: BrandlabDeploymentEnvironment =\n !declared || declared === 'development'\n ? 'development'\n : declared === 'production'\n ? 'production'\n : 'preview'\n return Object.freeze({\n environment: deploymentEnvironment,\n productionBuild: environment.NODE_ENV === 'production',\n })\n}\n\nexport interface BrandlabSiteDefinition {\n /** Public site name: Open Graph `siteName` and the brand guard for templated titles. */\n name: string\n /** Canonical HTTPS origin written as a source constant, never read from the environment. */\n canonicalUrl: string\n /** Open Graph locale, for example `en_AU`. */\n locale: string\n /** Page title template with exactly one `%s`, for example `%s | Example Services`. */\n titleTemplate: string\n defaultSocialImage: BrandlabSocialImage\n /**\n * Hosts that permanently redirect every path to the canonical origin, such as\n * the `www` host, the Vercel project host or a retired domain.\n *\n * Optional from 3.2.1: declare them in next.config with\n * `defineBrandlabNextConfig({ aliasHosts })` instead, so they stay out of the\n * browser bundles of every client component that imports the site identity.\n */\n aliasHosts?: readonly string[]\n}\n\nexport interface BrandlabSite {\n readonly name: string\n /** Canonical origin without a trailing slash, for example `https://example.com.au`. */\n readonly canonicalUrl: string\n readonly canonicalHost: string\n readonly locale: string\n readonly titleTemplate: string\n readonly defaultSocialImage: Readonly<BrandlabSocialImage>\n readonly aliasHosts: readonly string[]\n}\n\nconst SITE_KEYS = new Set([\n 'name',\n 'canonicalUrl',\n 'locale',\n 'titleTemplate',\n 'defaultSocialImage',\n 'aliasHosts',\n])\nconst HOSTNAME_PATTERN =\n /^(?=.{1,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z][a-z0-9-]{0,61}[a-z0-9]$/\n\nfunction assertSiteText(value: unknown, field: string, maximum: number): asserts value is string {\n if (\n typeof value !== 'string' ||\n !value.trim() ||\n value.trim() !== value ||\n value.length > maximum ||\n /[\\u0000-\\u001f\\u007f]/.test(value)\n ) {\n throw new Error(`${field} must be bounded, trimmed, single-line text.`)\n }\n}\n\nexport function isBrandlabHostname(value: unknown): value is string {\n return typeof value === 'string' && HOSTNAME_PATTERN.test(value)\n}\n\nfunction canonicalOrigin(value: unknown) {\n assertSiteText(value, 'canonicalUrl', 2_048)\n let url: URL\n try {\n url = new URL(value)\n } catch {\n throw new Error(`canonicalUrl must be an absolute HTTPS origin: \"${value}\".`)\n }\n if (\n url.protocol !== 'https:' ||\n url.username ||\n url.password ||\n url.port ||\n url.search ||\n url.hash ||\n (url.pathname !== '/' && url.pathname !== '') ||\n value.replace(/\\/$/, '') !== url.origin ||\n !isBrandlabHostname(url.hostname)\n ) {\n throw new Error(`canonicalUrl must be an absolute HTTPS origin: \"${value}\".`)\n }\n return url\n}\n\n/**\n * Declares the site-wide SEO identity once (`src/config/site.ts`). The result\n * feeds metadata, robots, sitemaps, redirects and next.config.\n */\nexport function defineBrandlabSite(definition: BrandlabSiteDefinition): BrandlabSite {\n if (!definition || typeof definition !== 'object' || Array.isArray(definition)) {\n throw new TypeError('defineBrandlabSite requires a site definition.')\n }\n const unsupported = Object.keys(definition).filter((key) => !SITE_KEYS.has(key))\n if (unsupported.length > 0) {\n throw new Error(`Site definition contains unsupported keys: ${unsupported.join(', ')}.`)\n }\n assertSiteText(definition.name, 'name', 160)\n const origin = canonicalOrigin(definition.canonicalUrl)\n assertSiteText(definition.locale, 'locale', 20)\n if (!/^[a-z]{2}(?:_[A-Z]{2})?$/.test(definition.locale)) {\n throw new Error('locale must use a language or language_REGION identifier.')\n }\n assertSiteText(definition.titleTemplate, 'titleTemplate', 240)\n if ((definition.titleTemplate.match(/%s/g) ?? []).length !== 1) {\n throw new Error('titleTemplate must contain exactly one %s placeholder.')\n }\n assertBrandlabSocialImage(definition.defaultSocialImage, 'defaultSocialImage')\n const aliasHosts = definition.aliasHosts ?? []\n assertBrandlabAliasHosts(aliasHosts, origin.hostname)\n\n return Object.freeze({\n name: definition.name,\n canonicalUrl: origin.origin,\n canonicalHost: origin.hostname,\n locale: definition.locale,\n titleTemplate: definition.titleTemplate,\n defaultSocialImage: Object.freeze({ ...definition.defaultSocialImage }),\n aliasHosts: Object.freeze([...aliasHosts]),\n })\n}\n\n/**\n * Checks a list of alias hosts: lowercase hostnames without a scheme, port or\n * path, never the canonical host, each listed once. `defineBrandlabSite` and\n * `defineBrandlabNextConfig({ aliasHosts })` share it.\n */\nexport function assertBrandlabAliasHosts(\n hosts: unknown,\n canonicalHost: string,\n field = 'aliasHosts',\n): asserts hosts is readonly string[] {\n if (!Array.isArray(hosts)) {\n throw new Error(`${field} must list every host that redirects to the canonical origin.`)\n }\n hosts.forEach((host, index) => {\n if (!isBrandlabHostname(host)) {\n throw new Error(`${field}[${index}] must be a lowercase hostname without a scheme, port or path.`)\n }\n if (host === canonicalHost) {\n throw new Error(`${field}[${index}] cannot be the canonical host.`)\n }\n })\n const duplicate = hosts.find((host, index) => hosts.indexOf(host) !== index)\n if (duplicate) throw new Error(`${field} contains duplicate host \"${duplicate}\".`)\n}\n"]}
1
+ {"version":3,"file":"site.js","sourceRoot":"","sources":["../src/site.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,GAE1B,MAAM,eAAe,CAAA;AAqBtB;;;;;;;;GAQG;AACH,MAAM,UAAU,yBAAyB,CAAC,WAAgC;IACxE,IAAI,CAAC,WAAW,IAAI,OAAO,WAAW,KAAK,QAAQ,EAAE,CAAC;QACpD,MAAM,IAAI,SAAS,CAAC,2DAA2D,CAAC,CAAA;IAClF,CAAC;IACD,MAAM,QAAQ,GAAG,CAAC,WAAW,CAAC,UAAU,IAAI,WAAW,CAAC,sBAAsB,CAAC,EAAE,IAAI,EAAE,CAAA;IACvF,MAAM,qBAAqB,GACzB,CAAC,QAAQ,IAAI,QAAQ,KAAK,aAAa;QACrC,CAAC,CAAC,aAAa;QACf,CAAC,CAAC,QAAQ,KAAK,YAAY;YACzB,CAAC,CAAC,YAAY;YACd,CAAC,CAAC,SAAS,CAAA;IACjB,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,WAAW,EAAE,qBAAqB;QAClC,eAAe,EAAE,WAAW,CAAC,QAAQ,KAAK,YAAY;KACvD,CAAC,CAAA;AACJ,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,MAAM,CAAC,MAAM,CAAC;IACpD,WAAW;IACX,SAAS;IACT,eAAe;IACf,UAAU;IACV,kBAAkB;IAClB,aAAa;IACb,eAAe;CACP,CAAC,CAAA;AAIX,4FAA4F;AAC5F,MAAM,UAAU,0BAA0B,CAAC,KAAa;IACtD,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAA;IACvC,OAAO,wBAAwB,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,IAAI,CAAC,CAA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Aa,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CAAC,GAAG,KAAK,IAAI,KAAK,iCAAiC,CAAC,CAAA;QACrE,CAAC;IACH,CAAC,CAAC,CAAA;IACF,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,KAAK,CAAC,CAAA;IAC5E,IAAI,SAAS;QAAE,MAAM,IAAI,KAAK,CAAC,GAAG,KAAK,6BAA6B,SAAS,IAAI,CAAC,CAAA;AACpF,CAAC","sourcesContent":["import {\n assertBrandlabSocialImage,\n type BrandlabSocialImage,\n} from './metadata.js'\n\n/**\n * `production` and `preview` are real Vercel deployments. Everything else —\n * `next dev`, a local `next start`, CI and tests — is `development`.\n */\nexport type BrandlabDeploymentEnvironment = 'production' | 'preview' | 'development'\n\nexport interface BrandlabDeployment {\n /** The single gate for production-only behaviour: analytics, contact delivery and Preview restrictions. */\n readonly environment: BrandlabDeploymentEnvironment\n /**\n * An optimised build (`NODE_ENV=production`), on Vercel or locally. Security\n * headers and crawler access follow the build so a local `next start` serves\n * exactly the production headers.\n */\n readonly productionBuild: boolean\n}\n\nexport type BrandlabEnvironment = Readonly<Record<string, string | undefined>>\n\n/**\n * Resolves the deployment once for every consumer (next.config headers,\n * robots, analytics and contact delivery). Server code passes `process.env`;\n * browser code passes `{ NEXT_PUBLIC_VERCEL_ENV: process.env.NEXT_PUBLIC_VERCEL_ENV }`,\n * which `defineBrandlabNextConfig` inlines at build time.\n *\n * `VERCEL_ENV` wins over `NEXT_PUBLIC_VERCEL_ENV`. An unrecognised declared\n * environment fails closed to `preview`: never analytics, never indexable.\n */\nexport function resolveBrandlabDeployment(environment: BrandlabEnvironment): BrandlabDeployment {\n if (!environment || typeof environment !== 'object') {\n throw new TypeError('resolveBrandlabDeployment requires an environment record.')\n }\n const declared = (environment.VERCEL_ENV ?? environment.NEXT_PUBLIC_VERCEL_ENV)?.trim()\n const deploymentEnvironment: BrandlabDeploymentEnvironment =\n !declared || declared === 'development'\n ? 'development'\n : declared === 'production'\n ? 'production'\n : 'preview'\n return Object.freeze({\n environment: deploymentEnvironment,\n productionBuild: environment.NODE_ENV === 'production',\n })\n}\n\n/**\n * The search and answer crawlers every production site keeps open (3.13.0): neither robots.txt nor a firewall rule\n * may block them (ready-gate check W10). These are their robots.txt user-agent tokens. Meta's crawler is not listed:\n * it has mixed uses, and a site limits it only with a recorded decision.\n */\nexport const BRANDLAB_SEARCH_CRAWLERS = Object.freeze([\n 'Googlebot',\n 'Bingbot',\n 'OAI-SearchBot',\n 'Applebot',\n 'Claude-SearchBot',\n 'Claude-User',\n 'PerplexityBot',\n] as const)\n\nexport type BrandlabSearchCrawler = (typeof BRANDLAB_SEARCH_CRAWLERS)[number]\n\n/** The protected crawler a robots.txt user-agent token names (case-insensitive), if any. */\nexport function brandlabSearchCrawlerNamed(token: string): BrandlabSearchCrawler | undefined {\n const name = token.trim().toLowerCase()\n return BRANDLAB_SEARCH_CRAWLERS.find((crawler) => crawler.toLowerCase() === name)\n}\n\nexport interface BrandlabSiteDefinition {\n /** Public site name: Open Graph `siteName` and the brand guard for templated titles. */\n name: string\n /** Canonical HTTPS origin written as a source constant, never read from the environment. */\n canonicalUrl: string\n /** Open Graph locale, for example `en_AU`. */\n locale: string\n /** Page title template with exactly one `%s`, for example `%s | Example Services`. */\n titleTemplate: string\n defaultSocialImage: BrandlabSocialImage\n /**\n * Hosts that permanently redirect every path to the canonical origin, such as\n * the `www` host, the Vercel project host or a retired domain.\n *\n * Optional from 3.2.1: declare them in next.config with\n * `defineBrandlabNextConfig({ aliasHosts })` instead, so they stay out of the\n * browser bundles of every client component that imports the site identity.\n */\n aliasHosts?: readonly string[]\n}\n\nexport interface BrandlabSite {\n readonly name: string\n /** Canonical origin without a trailing slash, for example `https://example.com.au`. */\n readonly canonicalUrl: string\n readonly canonicalHost: string\n readonly locale: string\n readonly titleTemplate: string\n readonly defaultSocialImage: Readonly<BrandlabSocialImage>\n readonly aliasHosts: readonly string[]\n}\n\nconst SITE_KEYS = new Set([\n 'name',\n 'canonicalUrl',\n 'locale',\n 'titleTemplate',\n 'defaultSocialImage',\n 'aliasHosts',\n])\nconst HOSTNAME_PATTERN =\n /^(?=.{1,253}$)(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\\.)+[a-z][a-z0-9-]{0,61}[a-z0-9]$/\n\nfunction assertSiteText(value: unknown, field: string, maximum: number): asserts value is string {\n if (\n typeof value !== 'string' ||\n !value.trim() ||\n value.trim() !== value ||\n value.length > maximum ||\n /[\\u0000-\\u001f\\u007f]/.test(value)\n ) {\n throw new Error(`${field} must be bounded, trimmed, single-line text.`)\n }\n}\n\nexport function isBrandlabHostname(value: unknown): value is string {\n return typeof value === 'string' && HOSTNAME_PATTERN.test(value)\n}\n\nfunction canonicalOrigin(value: unknown) {\n assertSiteText(value, 'canonicalUrl', 2_048)\n let url: URL\n try {\n url = new URL(value)\n } catch {\n throw new Error(`canonicalUrl must be an absolute HTTPS origin: \"${value}\".`)\n }\n if (\n url.protocol !== 'https:' ||\n url.username ||\n url.password ||\n url.port ||\n url.search ||\n url.hash ||\n (url.pathname !== '/' && url.pathname !== '') ||\n value.replace(/\\/$/, '') !== url.origin ||\n !isBrandlabHostname(url.hostname)\n ) {\n throw new Error(`canonicalUrl must be an absolute HTTPS origin: \"${value}\".`)\n }\n return url\n}\n\n/**\n * Declares the site-wide SEO identity once (`src/config/site.ts`). The result\n * feeds metadata, robots, sitemaps, redirects and next.config.\n */\nexport function defineBrandlabSite(definition: BrandlabSiteDefinition): BrandlabSite {\n if (!definition || typeof definition !== 'object' || Array.isArray(definition)) {\n throw new TypeError('defineBrandlabSite requires a site definition.')\n }\n const unsupported = Object.keys(definition).filter((key) => !SITE_KEYS.has(key))\n if (unsupported.length > 0) {\n throw new Error(`Site definition contains unsupported keys: ${unsupported.join(', ')}.`)\n }\n assertSiteText(definition.name, 'name', 160)\n const origin = canonicalOrigin(definition.canonicalUrl)\n assertSiteText(definition.locale, 'locale', 20)\n if (!/^[a-z]{2}(?:_[A-Z]{2})?$/.test(definition.locale)) {\n throw new Error('locale must use a language or language_REGION identifier.')\n }\n assertSiteText(definition.titleTemplate, 'titleTemplate', 240)\n if ((definition.titleTemplate.match(/%s/g) ?? []).length !== 1) {\n throw new Error('titleTemplate must contain exactly one %s placeholder.')\n }\n assertBrandlabSocialImage(definition.defaultSocialImage, 'defaultSocialImage')\n const aliasHosts = definition.aliasHosts ?? []\n assertBrandlabAliasHosts(aliasHosts, origin.hostname)\n\n return Object.freeze({\n name: definition.name,\n canonicalUrl: origin.origin,\n canonicalHost: origin.hostname,\n locale: definition.locale,\n titleTemplate: definition.titleTemplate,\n defaultSocialImage: Object.freeze({ ...definition.defaultSocialImage }),\n aliasHosts: Object.freeze([...aliasHosts]),\n })\n}\n\n/**\n * Checks a list of alias hosts: lowercase hostnames without a scheme, port or\n * path, never the canonical host, each listed once. `defineBrandlabSite` and\n * `defineBrandlabNextConfig({ aliasHosts })` share it.\n */\nexport function assertBrandlabAliasHosts(\n hosts: unknown,\n canonicalHost: string,\n field = 'aliasHosts',\n): asserts hosts is readonly string[] {\n if (!Array.isArray(hosts)) {\n throw new Error(`${field} must list every host that redirects to the canonical origin.`)\n }\n hosts.forEach((host, index) => {\n if (!isBrandlabHostname(host)) {\n throw new Error(`${field}[${index}] must be a lowercase hostname without a scheme, port or path.`)\n }\n if (host === canonicalHost) {\n throw new Error(`${field}[${index}] cannot be the canonical host.`)\n }\n })\n const duplicate = hosts.find((host, index) => hosts.indexOf(host) !== index)\n if (duplicate) throw new Error(`${field} contains duplicate host \"${duplicate}\".`)\n}\n"]}
@@ -81,13 +81,48 @@ export interface SitePhrases {
81
81
  /** Every primary phrase with its owning page. No phrase has two owners. */
82
82
  owners: readonly SitePhraseOwner[];
83
83
  }
84
+ /**
85
+ * A wave's kind (3.14.0): `release` brings new pages (they may not be built before the day); `return` brings existing
86
+ * pages of an existing estate back to the index (they are built and live now, noindex until the day).
87
+ */
88
+ export declare const SITE_WAVE_KINDS: readonly ["release", "return"];
89
+ export type SiteWaveKind = (typeof SITE_WAVE_KINDS)[number];
84
90
  /** One wave of a location estate's release (v2 §4.4 step 8). */
85
91
  export interface SiteReleaseWave {
86
92
  /** YYYY-MM-DD: from this day the wave's pages are indexable and in the sitemap. */
87
93
  releaseOn: string;
94
+ /** Defaults to `release` (3.14.0). */
95
+ kind?: SiteWaveKind;
88
96
  /** Paths or patterns: `*` matches within one path segment, `**` across segments, for example "/services/decking/*". */
89
97
  routes: readonly string[];
90
98
  }
99
+ /**
100
+ * Where an estate's location pages live (3.14.0): one path per family, with `{region}` or `{suburb}` as the last
101
+ * segment. Service-in-suburb families may nest under a service (`/tree-services/stump-grinding/{suburb}`); their
102
+ * service-region hubs take `{region}` in the same place.
103
+ */
104
+ export interface SiteEstatePaths {
105
+ region?: string;
106
+ suburb?: string;
107
+ serviceInSuburb?: readonly string[];
108
+ }
109
+ /**
110
+ * An existing location estate's plan (3.14.0, D4 b): the pages indexed now, where the families live and the public
111
+ * slugs that differ from the registry's. Every location page is indexed now or listed in a wave; a page indexed now
112
+ * never waits for a wave. Where region and suburb pages share a parent, a region slug that is also a suburb's sends the
113
+ * suburb to "{slug}-suburb" (AA: region `ryde`, suburb `ryde-suburb`). Public slugs apply on every location path.
114
+ */
115
+ export interface SiteEstatePlan {
116
+ /** Paths or patterns of the location pages indexable and in the sitemap today. */
117
+ indexedNow: readonly string[];
118
+ paths?: SiteEstatePaths;
119
+ slugs?: {
120
+ /** Registry region slug → public slug, for example `{ 'ryde-area': 'ryde' }`. */
121
+ regions?: Readonly<Record<string, string>>;
122
+ /** Registry suburb slug → public slug, always "{slug}-suburb", for example `{ ryde: 'ryde-suburb' }`. */
123
+ suburbs?: Readonly<Record<string, string>>;
124
+ };
125
+ }
91
126
  /**
92
127
  * Both fields are optional so a site can start the record before its look is settled; check D4 still fails a new
93
128
  * build or redesign whose record lacks either.
@@ -106,6 +141,8 @@ export interface SiteStrategy {
106
141
  * noindex or out of the sitemap until that day; every other location page is indexable and listed now.
107
142
  */
108
143
  waves?: readonly SiteReleaseWave[];
144
+ /** An existing estate's plan: pages indexed now, family paths and public slugs (3.14.0). */
145
+ estate?: SiteEstatePlan;
109
146
  }
110
147
  /**
111
148
  * Consecutive waves go out at least 14 and at most 28 days apart, and the next wave still to come is at most 28 days
@@ -123,4 +160,139 @@ export declare function waveForRoute(waves: readonly SiteReleaseWave[], path: st
123
160
  export declare function sydneyToday(date?: Date): string;
124
161
  /** Validates a site strategy record and returns it with its literal types kept. */
125
162
  export declare function defineSiteStrategy<const T extends SiteStrategy>(strategy: T): T;
163
+ /** Job mode per money service (v2 §2.2): it sets which of phone and quote is styled primary, never their order. */
164
+ export declare const SITE_JOB_MODES: readonly ["urgent", "planned", "mixed"];
165
+ export type SiteJobMode = (typeof SITE_JOB_MODES)[number];
166
+ /** How a service is bought beside its job mode: as an add-on to another job, or in a season. */
167
+ export declare const SITE_JOB_PATTERNS: readonly ["add-on", "seasonal"];
168
+ export type SiteJobPattern = (typeof SITE_JOB_PATTERNS)[number];
169
+ /**
170
+ * Where a money service lives on location pages (v2 §4.4 step 1): the main trade owns the suburb page; a family of its
171
+ * own has service-in-suburb pages; anything else is a section on the suburb page.
172
+ */
173
+ export declare const SITE_LOCATION_ROLES: readonly ["owns-suburb-page", "service-in-suburb-pages", "suburb-page-section"];
174
+ export type SiteLocationRole = (typeof SITE_LOCATION_ROLES)[number];
175
+ /** The typed reasons Romie may give for not publishing a suburb (v2 §4.3), including the owner-set `too-far`. */
176
+ export declare const SITE_EXCLUSION_REASONS: readonly ["rural", "not-residential", "water-access", "too-far", "not-a-real-suburb"];
177
+ export type SiteExclusionReason = (typeof SITE_EXCLUSION_REASONS)[number];
178
+ export declare const SITE_CONTACT_CHANNELS: readonly ["phone", "sms", "whatsapp", "email", "form"];
179
+ export type SiteContactChannel = (typeof SITE_CONTACT_CHANNELS)[number];
180
+ /** The seven fields of the decision card (v2 §12.2 step 2), at the top of `strategy.ts`. */
181
+ export interface SiteDecisionCard {
182
+ desiredWorkAndArea: string;
183
+ currentEnquiryConstraint: string;
184
+ /** The dated evidence: Search Console, GA4, SERPs, reviews. */
185
+ evidence: string;
186
+ selectedAction: string;
187
+ expectedMechanism: string;
188
+ successMeasure: string;
189
+ reviewDate: string;
190
+ }
191
+ /** A money service: one the business sells as its own job, confirmed by Romie. */
192
+ export interface SiteMoneyService {
193
+ /** The service page slug. */
194
+ slug: string;
195
+ name: string;
196
+ jobMode: SiteJobMode;
197
+ pattern?: SiteJobPattern;
198
+ /** Whether the service has a page in every served suburb (its own family, or the suburb page itself). */
199
+ suburbFamily: boolean;
200
+ onLocationPages: SiteLocationRole;
201
+ reason: string;
202
+ }
203
+ /** The 90-day lead baseline, target and read dates (v2 §9.4). Counts are what GA4 and the profile recorded. */
204
+ export interface SiteLeadBaseline {
205
+ /** YYYY-MM-DD, about 90 days. */
206
+ window: {
207
+ start: string;
208
+ end: string;
209
+ };
210
+ /** Provider-accepted form sends (`contact_form`). */
211
+ acceptedForms: number;
212
+ /** `phone_link_click` events. */
213
+ phoneTaps: number;
214
+ businessProfileCalls?: number | null;
215
+ qualifiedEnquiries?: number | null;
216
+ organicActions?: number;
217
+ paidActions?: number;
218
+ note?: string;
219
+ target: string;
220
+ /** Dates or milestones ("day 28 after launch"). */
221
+ readDates: readonly string[];
222
+ }
223
+ /** A true reason to choose the business, with the claims-register ids or named sources behind it. */
224
+ export interface SiteReasonToChoose {
225
+ text: string;
226
+ claims: readonly string[];
227
+ }
228
+ /** The owner's job economics; `null` until the owner says. Nothing renders from them. */
229
+ export interface SiteJobEconomics {
230
+ /** Whole dollars. */
231
+ averageJobValue: number | null;
232
+ /** A fraction from 0 to 1. */
233
+ closeRate: number | null;
234
+ capacityWeeksBooked: number | null;
235
+ /** The minimum job or call-out fee, as the owner put it. */
236
+ minimumJob: string | null;
237
+ unwantedJobs: readonly string[] | null;
238
+ preferredContact: SiteContactChannel | null;
239
+ }
240
+ /** One of the owner's (at most five) questions, with its fallback and dates. */
241
+ export interface SiteOwnerQuestion {
242
+ id: string;
243
+ question: string;
244
+ fallback: string;
245
+ /** YYYY-MM-DD. */
246
+ drafted: string;
247
+ sent?: string;
248
+ answered?: string;
249
+ }
250
+ export interface SiteExclusion {
251
+ suburb: string;
252
+ reason: SiteExclusionReason;
253
+ }
254
+ /**
255
+ * The typed decisions a site records beside its `siteStrategy` (v2 §2.4, §12.2 step 2): the decision card, the money
256
+ * services with their job modes, the lead baseline, the reasons to choose, the owner's economics and questions.
257
+ */
258
+ export interface SiteStrategyDecisions {
259
+ /** YYYY-MM-DD. */
260
+ recordedOn: string;
261
+ trade: string;
262
+ mainArea: string;
263
+ /** The home page's phrase, for example "tree services sydney". */
264
+ homePhrase: string;
265
+ decisionCard: SiteDecisionCard;
266
+ moneyServices: readonly SiteMoneyService[];
267
+ leadBaseline: SiteLeadBaseline;
268
+ /** Up to three (the spec asks for three; fewer is allowed so none is invented). */
269
+ reasonsToChoose: readonly SiteReasonToChoose[];
270
+ jobEconomics?: SiteJobEconomics;
271
+ /** The client's lane: where proof goes first. */
272
+ homeTerritory?: readonly string[];
273
+ tiers?: {
274
+ head: string;
275
+ standard: string;
276
+ noPage: string;
277
+ };
278
+ exclusions?: readonly SiteExclusion[];
279
+ ownerQuestions?: readonly SiteOwnerQuestion[];
280
+ }
281
+ export declare const SITE_MAX_OWNER_QUESTIONS = 5;
282
+ export declare const SITE_MAX_REASONS_TO_CHOOSE = 3;
283
+ /** Validates the decisions a site records beside its `siteStrategy` and returns them with their literal types kept. */
284
+ export declare function defineStrategyDecisions<const T extends SiteStrategyDecisions>(decisions: T): T;
285
+ /**
286
+ * What breaks an estate plan, in plain sentences (empty when nothing does): malformed routes or paths, a page indexed
287
+ * now that a wave still to come also lists, suburb renames other than "{slug}-suburb" and region and suburb pages that
288
+ * would share a path. Conformance's LOC-INDEX reads the same plan against the built pages.
289
+ */
290
+ export declare function estatePlanProblems(plan: SiteEstatePlan, waves: readonly SiteReleaseWave[], today?: string): string[];
291
+ /** A place's public slug in the estate: the plan's rename, or the registry slug. */
292
+ export declare function estatePublicSlug(plan: SiteEstatePlan, kind: 'region' | 'suburb', registrySlug: string): string;
293
+ /**
294
+ * A location page's path: the family's path with the place's public slug. `template` picks a nested service-in-suburb
295
+ * family (or its service-region hub, with `kind: 'region'`); it must be one of the plan's paths.
296
+ */
297
+ export declare function estateLocationPath(plan: SiteEstatePlan, kind: 'region' | 'suburb', registrySlug: string, template?: string): string;
126
298
  //# sourceMappingURL=strategy.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"strategy.d.ts","sourceRoot":"","sources":["../src/strategy.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAEjE,mGAAmG;AACnG,eAAO,MAAM,gBAAgB,sHAQnB,CAAA;AAEV,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAA;AAE7D,oGAAoG;AACpG,MAAM,WAAW,aAAa;IAC5B,gEAAgE;IAChE,MAAM,EAAE,MAAM,CAAA;IACd,sEAAsE;IACtE,MAAM,EAAE,MAAM,CAAA;IACd,4DAA4D;IAC5D,MAAM,EAAE,MAAM,CAAA;CACf;AAED,8FAA8F;AAC9F,MAAM,WAAW,kBAAkB;IACjC,mDAAmD;IACnD,SAAS,EAAE,MAAM,CAAA;IACjB,0EAA0E;IAC1E,KAAK,EAAE,MAAM,CAAA;IACb,uEAAuE;IACvE,KAAK,EAAE,MAAM,CAAA;CACd;AAED,gEAAgE;AAChE,MAAM,WAAW,gBAAgB;IAC/B,wDAAwD;IACxD,YAAY,EAAE,SAAS,MAAM,EAAE,CAAA;IAC/B,qHAAqH;IACrH,UAAU,EAAE,SAAS,MAAM,EAAE,CAAA;CAC9B;AAED,oCAAoC;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