@bright.global/arboretum-sdk 0.0.6

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 (218) hide show
  1. package/README.md +223 -0
  2. package/dist/arboretum-client.js +2 -0
  3. package/dist/clients/contentful-client/contentful-client.js +2 -0
  4. package/dist/clients/contentful-client/impl/contentful-client-impl.js +54 -0
  5. package/dist/es6/arboretum-client.js +1 -0
  6. package/dist/es6/clients/contentful-client/contentful-client.js +1 -0
  7. package/dist/es6/clients/contentful-client/impl/contentful-client-impl.js +50 -0
  8. package/dist/es6/impl/arboretum-client.impl.js +182 -0
  9. package/dist/es6/impl/data/content-types.js +136 -0
  10. package/dist/es6/impl/data/helpers/__mocks__/mocked-contentful-entries-client-api.js +66 -0
  11. package/dist/es6/impl/data/helpers/entry-status.js +19 -0
  12. package/dist/es6/impl/data/helpers/get-all-entries-recursively.js +113 -0
  13. package/dist/es6/impl/data/helpers/get-all-entries-recursively.test.js +114 -0
  14. package/dist/es6/impl/data/helpers/home-pages-by-tag-id.js +66 -0
  15. package/dist/es6/impl/data/helpers/home-pages-by-tag-id.test.js +105 -0
  16. package/dist/es6/impl/data/helpers/locale-codes-from-metadata.js +7 -0
  17. package/dist/es6/impl/data/helpers/locale-codes-from-metadata.test.js +52 -0
  18. package/dist/es6/impl/data/helpers/parse-locale-tag.js +24 -0
  19. package/dist/es6/impl/data/helpers/parse-locale-tag.test.js +19 -0
  20. package/dist/es6/impl/data/helpers/validate-content-types.js +112 -0
  21. package/dist/es6/impl/data/helpers/validate-content-types.test.js +103 -0
  22. package/dist/es6/impl/data/home-page.js +75 -0
  23. package/dist/es6/impl/data/locales.js +60 -0
  24. package/dist/es6/impl/data/page-entries.js +169 -0
  25. package/dist/es6/impl/data/page-entries.test.js +170 -0
  26. package/dist/es6/impl/data/redirect-entries.js +163 -0
  27. package/dist/es6/impl/data/sitemap-data.js +109 -0
  28. package/dist/es6/impl/sitemap/adapters/page-entry-adapter.js +27 -0
  29. package/dist/es6/impl/sitemap/adapters/redirect-entry-adapter.js +26 -0
  30. package/dist/es6/impl/sitemap/adapters/redirect-to-arboretum-page-adapter.js +11 -0
  31. package/dist/es6/impl/sitemap/adapters/to-arboretum-page-adapter.js +14 -0
  32. package/dist/es6/impl/sitemap/adapters/to-arboretum-page-adapter.test.js +100 -0
  33. package/dist/es6/impl/sitemap/adapters/to-arboretum-page-with-missing-data-adapter.js +16 -0
  34. package/dist/es6/impl/sitemap/helpers/__mocks__/mocked-localized-sitemap.js +186 -0
  35. package/dist/es6/impl/sitemap/helpers/build-localized-sitemap.js +128 -0
  36. package/dist/es6/impl/sitemap/helpers/build-localized-sitemap.test.js +208 -0
  37. package/dist/es6/impl/sitemap/helpers/build-pages-by-tag-eagerly.js +7 -0
  38. package/dist/es6/impl/sitemap/helpers/build-sitemap-eagerly.js +32 -0
  39. package/dist/es6/impl/sitemap/helpers/find-ancestors.js +42 -0
  40. package/dist/es6/impl/sitemap/helpers/find-ancestors.test.js +33 -0
  41. package/dist/es6/impl/sitemap/helpers/find-children.js +9 -0
  42. package/dist/es6/impl/sitemap/helpers/find-children.test.js +39 -0
  43. package/dist/es6/impl/sitemap/helpers/is-root.js +1 -0
  44. package/dist/es6/impl/sitemap/helpers/localize-contentful-field.js +22 -0
  45. package/dist/es6/impl/sitemap/helpers/localize-contentful-field.test.js +137 -0
  46. package/dist/es6/impl/sitemap/helpers/localized-pages-by-tag-id.js +79 -0
  47. package/dist/es6/impl/sitemap/helpers/localized-path.js +4 -0
  48. package/dist/es6/impl/sitemap/helpers/page-ancestors.js +8 -0
  49. package/dist/es6/impl/sitemap/helpers/page-children.js +10 -0
  50. package/dist/es6/impl/sitemap/methods/cached-data.js +7 -0
  51. package/dist/es6/impl/sitemap/methods/home-page.js +27 -0
  52. package/dist/es6/impl/sitemap/methods/page-by-id.js +29 -0
  53. package/dist/es6/impl/sitemap/methods/page-by-path.js +52 -0
  54. package/dist/es6/impl/sitemap/methods/pages-by-ids.js +6 -0
  55. package/dist/es6/impl/sitemap/methods/pages-by-paths.js +6 -0
  56. package/dist/es6/impl/sitemap/methods/pages-by-tag-id.js +37 -0
  57. package/dist/es6/impl/sitemap/methods/pages.js +75 -0
  58. package/dist/es6/impl/sitemap/methods/regenerate.js +64 -0
  59. package/dist/es6/impl/sitemap/methods/search.js +97 -0
  60. package/dist/es6/impl/sitemap/methods/status.js +47 -0
  61. package/dist/es6/index.js +2 -0
  62. package/dist/es6/utils/array-to-map.js +7 -0
  63. package/dist/es6/utils/fp-utils.js +5 -0
  64. package/dist/es6/utils/group-by.js +13 -0
  65. package/dist/es6/utils/json-stringify-map-replacer.js +6 -0
  66. package/dist/es6/utils/string-similarity.js +59 -0
  67. package/dist/impl/arboretum-client.impl.js +189 -0
  68. package/dist/impl/data/content-types.js +140 -0
  69. package/dist/impl/data/helpers/__mocks__/mocked-contentful-entries-client-api.js +72 -0
  70. package/dist/impl/data/helpers/entry-status.js +23 -0
  71. package/dist/impl/data/helpers/get-all-entries-recursively.js +117 -0
  72. package/dist/impl/data/helpers/get-all-entries-recursively.test.js +116 -0
  73. package/dist/impl/data/helpers/home-pages-by-tag-id.js +70 -0
  74. package/dist/impl/data/helpers/home-pages-by-tag-id.test.js +107 -0
  75. package/dist/impl/data/helpers/locale-codes-from-metadata.js +11 -0
  76. package/dist/impl/data/helpers/locale-codes-from-metadata.test.js +54 -0
  77. package/dist/impl/data/helpers/parse-locale-tag.js +28 -0
  78. package/dist/impl/data/helpers/parse-locale-tag.test.js +21 -0
  79. package/dist/impl/data/helpers/validate-content-types.js +117 -0
  80. package/dist/impl/data/helpers/validate-content-types.test.js +105 -0
  81. package/dist/impl/data/home-page.js +79 -0
  82. package/dist/impl/data/locales.js +64 -0
  83. package/dist/impl/data/page-entries.js +173 -0
  84. package/dist/impl/data/page-entries.test.js +172 -0
  85. package/dist/impl/data/redirect-entries.js +168 -0
  86. package/dist/impl/data/sitemap-data.js +113 -0
  87. package/dist/impl/sitemap/adapters/page-entry-adapter.js +31 -0
  88. package/dist/impl/sitemap/adapters/redirect-entry-adapter.js +30 -0
  89. package/dist/impl/sitemap/adapters/redirect-to-arboretum-page-adapter.js +15 -0
  90. package/dist/impl/sitemap/adapters/to-arboretum-page-adapter.js +18 -0
  91. package/dist/impl/sitemap/adapters/to-arboretum-page-adapter.test.js +102 -0
  92. package/dist/impl/sitemap/adapters/to-arboretum-page-with-missing-data-adapter.js +20 -0
  93. package/dist/impl/sitemap/helpers/__mocks__/mocked-localized-sitemap.js +189 -0
  94. package/dist/impl/sitemap/helpers/build-localized-sitemap.js +133 -0
  95. package/dist/impl/sitemap/helpers/build-localized-sitemap.test.js +210 -0
  96. package/dist/impl/sitemap/helpers/build-pages-by-tag-eagerly.js +11 -0
  97. package/dist/impl/sitemap/helpers/build-sitemap-eagerly.js +36 -0
  98. package/dist/impl/sitemap/helpers/find-ancestors.js +46 -0
  99. package/dist/impl/sitemap/helpers/find-ancestors.test.js +35 -0
  100. package/dist/impl/sitemap/helpers/find-children.js +13 -0
  101. package/dist/impl/sitemap/helpers/find-children.test.js +41 -0
  102. package/dist/impl/sitemap/helpers/is-root.js +5 -0
  103. package/dist/impl/sitemap/helpers/localize-contentful-field.js +26 -0
  104. package/dist/impl/sitemap/helpers/localize-contentful-field.test.js +139 -0
  105. package/dist/impl/sitemap/helpers/localized-pages-by-tag-id.js +84 -0
  106. package/dist/impl/sitemap/helpers/localized-path.js +8 -0
  107. package/dist/impl/sitemap/helpers/page-ancestors.js +12 -0
  108. package/dist/impl/sitemap/helpers/page-children.js +14 -0
  109. package/dist/impl/sitemap/methods/cached-data.js +11 -0
  110. package/dist/impl/sitemap/methods/home-page.js +31 -0
  111. package/dist/impl/sitemap/methods/page-by-id.js +33 -0
  112. package/dist/impl/sitemap/methods/page-by-path.js +56 -0
  113. package/dist/impl/sitemap/methods/pages-by-ids.js +10 -0
  114. package/dist/impl/sitemap/methods/pages-by-paths.js +10 -0
  115. package/dist/impl/sitemap/methods/pages-by-tag-id.js +41 -0
  116. package/dist/impl/sitemap/methods/pages.js +79 -0
  117. package/dist/impl/sitemap/methods/regenerate.js +68 -0
  118. package/dist/impl/sitemap/methods/search.js +101 -0
  119. package/dist/impl/sitemap/methods/status.js +51 -0
  120. package/dist/index.js +8 -0
  121. package/dist/types/arboretum-client.d.ts +110 -0
  122. package/dist/types/clients/contentful-client/contentful-client.d.ts +95 -0
  123. package/dist/types/clients/contentful-client/impl/contentful-client-impl.d.ts +3 -0
  124. package/dist/types/impl/arboretum-client.impl.d.ts +107 -0
  125. package/dist/types/impl/data/content-types.d.ts +11 -0
  126. package/dist/types/impl/data/helpers/__mocks__/mocked-contentful-entries-client-api.d.ts +7 -0
  127. package/dist/types/impl/data/helpers/entry-status.d.ts +2 -0
  128. package/dist/types/impl/data/helpers/get-all-entries-recursively.d.ts +6 -0
  129. package/dist/types/impl/data/helpers/get-all-entries-recursively.test.d.ts +1 -0
  130. package/dist/types/impl/data/helpers/home-pages-by-tag-id.d.ts +15 -0
  131. package/dist/types/impl/data/helpers/home-pages-by-tag-id.test.d.ts +1 -0
  132. package/dist/types/impl/data/helpers/locale-codes-from-metadata.d.ts +2 -0
  133. package/dist/types/impl/data/helpers/locale-codes-from-metadata.test.d.ts +1 -0
  134. package/dist/types/impl/data/helpers/parse-locale-tag.d.ts +3 -0
  135. package/dist/types/impl/data/helpers/parse-locale-tag.test.d.ts +1 -0
  136. package/dist/types/impl/data/helpers/validate-content-types.d.ts +5 -0
  137. package/dist/types/impl/data/helpers/validate-content-types.test.d.ts +1 -0
  138. package/dist/types/impl/data/home-page.d.ts +3 -0
  139. package/dist/types/impl/data/locales.d.ts +10 -0
  140. package/dist/types/impl/data/page-entries.d.ts +3 -0
  141. package/dist/types/impl/data/page-entries.test.d.ts +1 -0
  142. package/dist/types/impl/data/redirect-entries.d.ts +4 -0
  143. package/dist/types/impl/data/sitemap-data.d.ts +17 -0
  144. package/dist/types/impl/sitemap/adapters/page-entry-adapter.d.ts +6 -0
  145. package/dist/types/impl/sitemap/adapters/redirect-entry-adapter.d.ts +4 -0
  146. package/dist/types/impl/sitemap/adapters/redirect-to-arboretum-page-adapter.d.ts +3 -0
  147. package/dist/types/impl/sitemap/adapters/to-arboretum-page-adapter.d.ts +3 -0
  148. package/dist/types/impl/sitemap/adapters/to-arboretum-page-adapter.test.d.ts +1 -0
  149. package/dist/types/impl/sitemap/adapters/to-arboretum-page-with-missing-data-adapter.d.ts +3 -0
  150. package/dist/types/impl/sitemap/helpers/__mocks__/mocked-localized-sitemap.d.ts +16 -0
  151. package/dist/types/impl/sitemap/helpers/build-localized-sitemap.d.ts +5 -0
  152. package/dist/types/impl/sitemap/helpers/build-localized-sitemap.test.d.ts +1 -0
  153. package/dist/types/impl/sitemap/helpers/build-pages-by-tag-eagerly.d.ts +3 -0
  154. package/dist/types/impl/sitemap/helpers/build-sitemap-eagerly.d.ts +3 -0
  155. package/dist/types/impl/sitemap/helpers/find-ancestors.d.ts +2 -0
  156. package/dist/types/impl/sitemap/helpers/find-ancestors.test.d.ts +1 -0
  157. package/dist/types/impl/sitemap/helpers/find-children.d.ts +2 -0
  158. package/dist/types/impl/sitemap/helpers/find-children.test.d.ts +1 -0
  159. package/dist/types/impl/sitemap/helpers/is-root.d.ts +2 -0
  160. package/dist/types/impl/sitemap/helpers/localize-contentful-field.d.ts +4 -0
  161. package/dist/types/impl/sitemap/helpers/localize-contentful-field.test.d.ts +1 -0
  162. package/dist/types/impl/sitemap/helpers/localized-pages-by-tag-id.d.ts +4 -0
  163. package/dist/types/impl/sitemap/helpers/localized-path.d.ts +1 -0
  164. package/dist/types/impl/sitemap/helpers/page-ancestors.d.ts +3 -0
  165. package/dist/types/impl/sitemap/helpers/page-children.d.ts +5 -0
  166. package/dist/types/impl/sitemap/methods/cached-data.d.ts +3 -0
  167. package/dist/types/impl/sitemap/methods/home-page.d.ts +3 -0
  168. package/dist/types/impl/sitemap/methods/page-by-id.d.ts +3 -0
  169. package/dist/types/impl/sitemap/methods/page-by-path.d.ts +3 -0
  170. package/dist/types/impl/sitemap/methods/pages-by-ids.d.ts +3 -0
  171. package/dist/types/impl/sitemap/methods/pages-by-paths.d.ts +3 -0
  172. package/dist/types/impl/sitemap/methods/pages-by-tag-id.d.ts +3 -0
  173. package/dist/types/impl/sitemap/methods/pages.d.ts +3 -0
  174. package/dist/types/impl/sitemap/methods/regenerate.d.ts +3 -0
  175. package/dist/types/impl/sitemap/methods/search.d.ts +3 -0
  176. package/dist/types/impl/sitemap/methods/status.d.ts +3 -0
  177. package/dist/types/index.d.ts +6 -0
  178. package/dist/types/utils/array-to-map.d.ts +1 -0
  179. package/dist/types/utils/fp-utils.d.ts +11 -0
  180. package/dist/types/utils/group-by.d.ts +1 -0
  181. package/dist/types/utils/json-stringify-map-replacer.d.ts +1 -0
  182. package/dist/types/utils/string-similarity.d.ts +9 -0
  183. package/dist/utils/array-to-map.js +11 -0
  184. package/dist/utils/fp-utils.js +10 -0
  185. package/dist/utils/group-by.js +17 -0
  186. package/dist/utils/json-stringify-map-replacer.js +10 -0
  187. package/dist/utils/string-similarity.js +63 -0
  188. package/docs/.nojekyll +1 -0
  189. package/docs/assets/highlight.css +78 -0
  190. package/docs/assets/main.js +58 -0
  191. package/docs/assets/search.js +1 -0
  192. package/docs/assets/style.css +1367 -0
  193. package/docs/functions/createArboretumClient.html +72 -0
  194. package/docs/functions/createArboretumClientFromCdaClient.html +72 -0
  195. package/docs/functions/createArboretumClientFromCdaParams.html +72 -0
  196. package/docs/functions/createArboretumClientFromCma.html +72 -0
  197. package/docs/index.html +228 -0
  198. package/docs/modules.html +88 -0
  199. package/docs/types/ArboretumAliasT.html +70 -0
  200. package/docs/types/ArboretumClientConfigFromCdaParamsT.html +74 -0
  201. package/docs/types/ArboretumClientConfigFromCdaT.html +79 -0
  202. package/docs/types/ArboretumClientConfigFromCmaT.html +79 -0
  203. package/docs/types/ArboretumClientConfigT.html +63 -0
  204. package/docs/types/ArboretumClientContentfulConfigOptionsT.html +93 -0
  205. package/docs/types/ArboretumClientOptions.html +72 -0
  206. package/docs/types/ArboretumClientOptionsT.html +63 -0
  207. package/docs/types/ArboretumClientT.html +235 -0
  208. package/docs/types/ArboretumPageNodeT.html +63 -0
  209. package/docs/types/ArboretumPageT.html +76 -0
  210. package/docs/types/ArboretumRedirectT.html +70 -0
  211. package/docs/types/CachedDataT.html +63 -0
  212. package/docs/types/Either.html +70 -0
  213. package/docs/types/EitherL.html +75 -0
  214. package/docs/types/EitherR.html +75 -0
  215. package/docs/types/LocaleT.html +63 -0
  216. package/docs/types/OptionsT.html +70 -0
  217. package/logo.svg +12 -0
  218. package/package.json +47 -0
@@ -0,0 +1,228 @@
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>@bright.global/arboretum-sdk</title><meta name="description" content="Documentation for @bright.global/arboretum-sdk"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><script defer src="assets/main.js"></script><script async src="assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
2
+ <div class="tsd-toolbar-contents container">
3
+ <div class="table-cell" id="tsd-search" data-base=".">
4
+ <div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
5
+ <div class="field">
6
+ <div id="tsd-toolbar-links"></div></div>
7
+ <ul class="results">
8
+ <li class="state loading">Preparing search index...</li>
9
+ <li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">@bright.global/arboretum-sdk</a></div>
10
+ <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
11
+ <div class="container container-main">
12
+ <div class="col-content">
13
+ <div class="tsd-page-title">
14
+ <h2>@bright.global/arboretum-sdk</h2></div>
15
+ <div class="tsd-panel tsd-typography"><h3 align="center">
16
+ <a href="https://gcanti.github.io/fp-ts/">
17
+ <img src="./logo.svg">
18
+ </a>
19
+ </h3>
20
+
21
+ <p align="center">
22
+ Arboretum - The sitemap for contentful
23
+ </p>
24
+
25
+ <a id="md:introduction" class="tsd-anchor"></a><h1><a href="#md:introduction">Introduction</a></h1><p><code>@bright.global/arboretum-sdk</code> is a library for building sitemaps in <a href="https://www.contentful.com/">Contentful</a>.</p>
26
+ <ul>
27
+ <li><strong>Dynamic:</strong> Arboretum SDK builds sitemap dynamically based on the pages structure defined in Contentful. There are no hard-coded paths, so editors have full power over the sitemap.</li>
28
+ <li><strong>Customizable:</strong> Content types that represent pages are configurable, so you can integrate Arboretum SDK even in existing projects.</li>
29
+ <li><strong>Efficient:</strong> Number of requests to Contentful is minimalized.</li>
30
+ <li><strong>Lazy:</strong> By default sitemap is built only for locales that were explicitly requested.</li>
31
+ <li><strong>In memory:</strong> Sitemap is stored in memory, so no other dependencies (e.g. database) are required.</li>
32
+ </ul>
33
+ <a id="md:installation" class="tsd-anchor"></a><h1><a href="#md:installation">Installation</a></h1><p>To install the stable version:</p>
34
+ <pre><code><span class="hl-0">yarn</span><span class="hl-1"> </span><span class="hl-0">add</span><span class="hl-1"> @</span><span class="hl-0">bright</span><span class="hl-1">.</span><span class="hl-0">global</span><span class="hl-1">/</span><span class="hl-0">arboretum</span><span class="hl-1">-</span><span class="hl-0">sdk</span>
35
+ </code><button>Copy</button></pre>
36
+ <a id="md:create-client" class="tsd-anchor"></a><h1><a href="#md:create-client">Create client</a></h1><p>Basically, there are 3 ways to create Arboretum SDK client:</p>
37
+ <ul>
38
+ <li>By providing required credentials by hand</li>
39
+ </ul>
40
+ <pre><code class="language-ts"><span class="hl-2">import</span><span class="hl-1"> { </span><span class="hl-0">createArboretumClientFromCdaParams</span><span class="hl-1"> } </span><span class="hl-2">from</span><span class="hl-1"> </span><span class="hl-3">&quot;@bright.global/arboretum-sdk&quot;</span><span class="hl-1">;</span><br/><br/><span class="hl-1">(</span><span class="hl-4">async</span><span class="hl-1"> () </span><span class="hl-4">=&gt;</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-4">const</span><span class="hl-1"> { </span><span class="hl-5">client</span><span class="hl-1">, </span><span class="hl-5">warnings</span><span class="hl-1"> } = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-6">createArboretumClientFromCdaParams</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-0">preview:</span><span class="hl-1"> </span><span class="hl-4">false</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-0">contentful:</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-0">space:</span><span class="hl-1"> </span><span class="hl-3">&quot;[CONTENTFUL SPACE]&quot;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-0">environment:</span><span class="hl-1"> </span><span class="hl-3">&quot;[CONTENTFUL ENVIRONMENT]&quot;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-0">accessToken:</span><span class="hl-1"> </span><span class="hl-3">&quot;[CONTENTFUL CDA/CPA ACCESS TOKEN]&quot;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-7">// Sample page content type configuration</span><br/><span class="hl-1"> </span><span class="hl-0">options:</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-0">pageContentTypes:</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-0">page:</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-0">titleFieldId:</span><span class="hl-1"> </span><span class="hl-3">&quot;name&quot;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-0">slugFieldId:</span><span class="hl-1"> </span><span class="hl-3">&quot;slug&quot;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-0">childPagesFieldId:</span><span class="hl-1"> </span><span class="hl-3">&quot;childPages&quot;</span><span class="hl-1">,</span><br/><span class="hl-1"> },</span><br/><span class="hl-1"> },</span><br/><span class="hl-1"> },</span><br/><span class="hl-1"> },</span><br/><span class="hl-1"> </span><span class="hl-7">// Client configuration options</span><br/><span class="hl-1"> </span><span class="hl-0">options:</span><span class="hl-1"> {},</span><br/><span class="hl-1"> });</span><br/><span class="hl-1">})();</span>
41
+ </code><button>Copy</button></pre>
42
+ <ul>
43
+ <li>By providing contentful CDA client</li>
44
+ </ul>
45
+ <pre><code class="language-ts"><span class="hl-2">import</span><span class="hl-1"> { </span><span class="hl-0">createArboretumClientFromCdaClient</span><span class="hl-1"> } </span><span class="hl-2">from</span><span class="hl-1"> </span><span class="hl-3">&quot;@bright.global/arboretum-sdk&quot;</span><span class="hl-1">;</span><br/><span class="hl-2">import</span><span class="hl-1"> { </span><span class="hl-0">createClient</span><span class="hl-1"> } </span><span class="hl-2">from</span><span class="hl-1"> </span><span class="hl-3">&quot;contentful&quot;</span><span class="hl-1">;</span><br/><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">contentfulClient</span><span class="hl-1"> = </span><span class="hl-6">createClient</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-0">space:</span><span class="hl-1"> </span><span class="hl-3">&quot;[CONTENTFUL SPACE]&quot;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-0">environment:</span><span class="hl-1"> </span><span class="hl-3">&quot;[CONTENTFUL ENVIRONMENT]&quot;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-0">accessToken:</span><span class="hl-1"> </span><span class="hl-3">&quot;[CONTENTFUL CDA/CPA ACCESS TOKEN]&quot;</span><span class="hl-1">,</span><br/><span class="hl-1">});</span><br/><br/><span class="hl-1">(</span><span class="hl-4">async</span><span class="hl-1"> () </span><span class="hl-4">=&gt;</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-4">const</span><span class="hl-1"> { </span><span class="hl-5">client</span><span class="hl-1">, </span><span class="hl-5">warnings</span><span class="hl-1"> } = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-6">createArboretumClientFromCdaClient</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-0">preview:</span><span class="hl-1"> </span><span class="hl-4">false</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-0">contentful:</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-0">client:</span><span class="hl-1"> </span><span class="hl-0">contentfulClient</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-7">// Sample page content type configuration</span><br/><span class="hl-1"> </span><span class="hl-0">options:</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-0">pageContentTypes:</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-0">page:</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-0">titleFieldId:</span><span class="hl-1"> </span><span class="hl-3">&quot;name&quot;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-0">slugFieldId:</span><span class="hl-1"> </span><span class="hl-3">&quot;slug&quot;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-0">childPagesFieldId:</span><span class="hl-1"> </span><span class="hl-3">&quot;childPages&quot;</span><span class="hl-1">,</span><br/><span class="hl-1"> },</span><br/><span class="hl-1"> },</span><br/><span class="hl-1"> },</span><br/><span class="hl-1"> },</span><br/><span class="hl-1"> </span><span class="hl-7">// Client configuration options</span><br/><span class="hl-1"> </span><span class="hl-0">options:</span><span class="hl-1"> {},</span><br/><span class="hl-1"> });</span><br/><span class="hl-1">})();</span>
46
+ </code><button>Copy</button></pre>
47
+ <ul>
48
+ <li>By providing contentful CMA client (especially useful in contentful apps)</li>
49
+ </ul>
50
+ <pre><code class="language-ts"><span class="hl-2">import</span><span class="hl-1"> { </span><span class="hl-0">createArboretumClientFromCma</span><span class="hl-1"> } </span><span class="hl-2">from</span><span class="hl-1"> </span><span class="hl-3">&quot;@bright.global/arboretum-sdk&quot;</span><span class="hl-1">;</span><br/><span class="hl-2">import</span><span class="hl-1"> { </span><span class="hl-0">createClient</span><span class="hl-1"> } </span><span class="hl-2">from</span><span class="hl-1"> </span><span class="hl-3">&quot;contentful-management&quot;</span><span class="hl-1">;</span><br/><br/><span class="hl-4">async</span><span class="hl-1"> () </span><span class="hl-4">=&gt;</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">cmaClient</span><span class="hl-1"> = </span><span class="hl-6">createClient</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-0">accessToken:</span><span class="hl-1"> </span><span class="hl-3">&quot;[CONTENTFUL CDA/CPA ACCESS TOKEN]&quot;</span><span class="hl-1">,</span><br/><span class="hl-1"> });</span><br/><br/><span class="hl-1"> </span><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">spaceClient</span><span class="hl-1"> = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">cmaClient</span><span class="hl-1">.</span><span class="hl-6">getSpace</span><span class="hl-1">(</span><span class="hl-3">&quot;[CONTENTFUL SPACE]&quot;</span><span class="hl-1">);</span><br/><br/><span class="hl-1"> </span><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">environmentClient</span><span class="hl-1"> = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-0">spaceClient</span><span class="hl-1">.</span><span class="hl-6">getEnvironment</span><span class="hl-1">(</span><br/><span class="hl-1"> </span><span class="hl-3">&quot;[CONTENTFUL ENVIRONMENT]&quot;</span><br/><span class="hl-1"> );</span><br/><br/><span class="hl-1"> </span><span class="hl-4">const</span><span class="hl-1"> { </span><span class="hl-5">client</span><span class="hl-1">, </span><span class="hl-5">warnings</span><span class="hl-1"> } = </span><span class="hl-2">await</span><span class="hl-1"> </span><span class="hl-6">createArboretumClientFromCma</span><span class="hl-1">({</span><br/><span class="hl-1"> </span><span class="hl-0">preview:</span><span class="hl-1"> </span><span class="hl-4">false</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-0">contentful:</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-0">client:</span><span class="hl-1"> </span><span class="hl-0">environmentClient</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-7">// Sample page content type configuration</span><br/><span class="hl-1"> </span><span class="hl-0">options:</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-0">pageContentTypes:</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-0">page:</span><span class="hl-1"> {</span><br/><span class="hl-1"> </span><span class="hl-0">titleFieldId:</span><span class="hl-1"> </span><span class="hl-3">&quot;name&quot;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-0">slugFieldId:</span><span class="hl-1"> </span><span class="hl-3">&quot;slug&quot;</span><span class="hl-1">,</span><br/><span class="hl-1"> </span><span class="hl-0">childPagesFieldId:</span><span class="hl-1"> </span><span class="hl-3">&quot;childPages&quot;</span><span class="hl-1">,</span><br/><span class="hl-1"> },</span><br/><span class="hl-1"> },</span><br/><span class="hl-1"> },</span><br/><span class="hl-1"> },</span><br/><span class="hl-1"> </span><span class="hl-7">// Client configuration options</span><br/><span class="hl-1"> </span><span class="hl-0">options:</span><span class="hl-1"> {},</span><br/><span class="hl-1"> });</span><br/><span class="hl-1">};</span>
51
+ </code><button>Copy</button></pre>
52
+ <p>In this step all data required to calculate sitemap is fetched and stored in internal memory. That&#39;s the only place where dynamic requests to Contentful are happening. All subsequent interactions with the Arboretum SDK client rely on the data fetched in this step.</p>
53
+ <p>*** Important: Remember to provide valid content types configuration unique to your contentful environment and mark entry representing the home page with the tag <code>pageHome</code> (you can customize this tag using <code>homePageTagId</code> configuration). </p>
54
+ <a id="md:client-configuration-options" class="tsd-anchor"></a><h3><a href="#md:client-configuration-options">Client configuration options</a></h3><table>
55
+ <thead>
56
+ <tr>
57
+ <th></th>
58
+ <th>Default</th>
59
+ <th>Description</th>
60
+ </tr>
61
+ </thead>
62
+ <tbody><tr>
63
+ <td>eageryly</td>
64
+ <td>false</td>
65
+ <td>By default localized sitemap is generated only for locales that were explicitly requested. When set to <code>true</code> sitemap is generated for every locale in advance.</td>
66
+ </tr>
67
+ <tr>
68
+ <td>data</td>
69
+ <td></td>
70
+ <td>You can cache data computed during previous Arboretum SDK client initialization (<code>client.cachedData</code> method) and use it to create a new client. When this parameter is defined all requests to Contentful are skipped.</td>
71
+ </tr>
72
+ <tr>
73
+ <td>includeEntryStatus</td>
74
+ <td>false</td>
75
+ <td>Only for Arboretum SDK clients that were created based on Contentful CMA. When set to <code>true</code> page&#39;s <code>cmaOnlyStatus</code> field will be defined.</td>
76
+ </tr>
77
+ </tbody></table>
78
+ <a id="md:contentful-configuration-options" class="tsd-anchor"></a><h3><a href="#md:contentful-configuration-options">Contentful configuration options</a></h3><table>
79
+ <thead>
80
+ <tr>
81
+ <th>Default</th>
82
+ <th>Default</th>
83
+ <th>Description</th>
84
+ </tr>
85
+ </thead>
86
+ <tbody><tr>
87
+ <td>homePageTagId</td>
88
+ <td>pageHome</td>
89
+ <td>Sitemap root tag id</td>
90
+ </tr>
91
+ <tr>
92
+ <td>pageContentTypes</td>
93
+ <td></td>
94
+ <td><strong>Required</strong>. Object consisting of keys that are content type id&#39;s and values described <a href="#contentful-page-content-types-configuration">here</a>. Sample value: <code>{page:{&quot;titleFieldId&quot;:&quot;name&quot;,&quot;slugFieldId&quot;:&quot;slug&quot;,&quot;childPagesFieldId&quot;:&quot;childPages&quot;}}</code></td>
95
+ </tr>
96
+ <tr>
97
+ <td>redirectContentType</td>
98
+ <td></td>
99
+ <td>Object described <a href="#contentful-redirect-content-type-configuration">here</a>. Sample value: <code>{&quot;id&quot;:&quot;redirect&quot;,&quot;titleFieldId&quot;:&quot;name&quot;,&quot;typeFieldId&quot;:&quot;type&quot;,&quot;pageFieldId&quot;:&quot;page&quot;,&quot;pathFieldId&quot;:&quot;path&quot;}</code></td>
100
+ </tr>
101
+ </tbody></table>
102
+ <a id="md:contentful-page-content-types-configuration" class="tsd-anchor"></a><h3><a href="#md:contentful-page-content-types-configuration">Contentful page content types configuration</a></h3><table>
103
+ <thead>
104
+ <tr>
105
+ <th>Name</th>
106
+ <th>Default</th>
107
+ <th>Description</th>
108
+ </tr>
109
+ </thead>
110
+ <tbody><tr>
111
+ <td>titleFieldId</td>
112
+ <td></td>
113
+ <td>Id of the field that represents the page title. This field should be of type <code>Symbol</code>.</td>
114
+ </tr>
115
+ <tr>
116
+ <td>slugFieldId</td>
117
+ <td></td>
118
+ <td><strong>Required</strong>. Id of the field that represents the page slug that should match the following regexp <code>^((\/)|(([\/\w\-\._~:!$&amp;&#39;\(\)*+,;@]|(%\d+))+))$</code>. This field should be of type <code>Symbol</code>.</td>
119
+ </tr>
120
+ <tr>
121
+ <td>childPagesFieldId</td>
122
+ <td></td>
123
+ <td>Id of the field that represents the references to child pages. This field should be of type <code>Array</code> and include references to other entries that were configured as pages.</td>
124
+ </tr>
125
+ </tbody></table>
126
+ <a id="md:contentful-redirect-content-type-configuration" class="tsd-anchor"></a><h3><a href="#md:contentful-redirect-content-type-configuration">Contentful redirect content type configuration</a></h3><table>
127
+ <thead>
128
+ <tr>
129
+ <th>Name</th>
130
+ <th>Default</th>
131
+ <th>Description</th>
132
+ </tr>
133
+ </thead>
134
+ <tbody><tr>
135
+ <td>id</td>
136
+ <td></td>
137
+ <td><strong>Required</strong>. Id of the redirect content type.</td>
138
+ </tr>
139
+ <tr>
140
+ <td>titleFieldId</td>
141
+ <td></td>
142
+ <td>Id of the field that represents the redirect title. This field should be of type <code>Symbol</code>.</td>
143
+ </tr>
144
+ <tr>
145
+ <td>typeFieldId</td>
146
+ <td></td>
147
+ <td><strong>Required</strong>. Id of the field that represents the redirect type (should be either <code>alias</code> or <code>redirect</code>). This field should be of type <code>Symbol</code>.</td>
148
+ </tr>
149
+ <tr>
150
+ <td>pageFieldId</td>
151
+ <td></td>
152
+ <td><strong>Required</strong>. Id of the field that represents the page reference. This field should be of type <code>Link</code> and accept references only to entries that were configured as pages.</td>
153
+ </tr>
154
+ <tr>
155
+ <td>pathFieldId</td>
156
+ <td></td>
157
+ <td><strong>Required</strong>. Id of the field that represents the redirect path that should match the following regexp <code>\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?$</code>. This field should be of type <code>Symbol</code>.</td>
158
+ </tr>
159
+ </tbody></table>
160
+ <a id="md:basic-usage" class="tsd-anchor"></a><h1><a href="#md:basic-usage">Basic usage</a></h1><p>Most of the results returned by Arboretum SDK are wrapped by <code>Eider</code> (inspired by <a href="https://gcanti.github.io/fp-ts/modules/Either.ts">fp-ts Eider</a>) where successful responses are marked with <code>_tag</code> equal to <code>&quot;Right&quot;</code> and failed responses are marked with <code>_tag</code> equal to <code>&quot;Left&quot;</code>.</p>
161
+ <pre><code class="language-ts"><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">homePage</span><span class="hl-1"> = </span><span class="hl-0">client</span><span class="hl-1">.</span><span class="hl-6">pageByPath</span><span class="hl-1">(</span><span class="hl-3">&quot;/en&quot;</span><span class="hl-1">);</span><br/><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-0">homePage</span><span class="hl-1">);</span><br/><span class="hl-7">/* prints </span><br/><span class="hl-7"> {</span><br/><span class="hl-7"> _tag: &#39;Right&#39;,</span><br/><span class="hl-7"> right: {</span><br/><span class="hl-7"> type: &#39;page&#39;,</span><br/><span class="hl-7"> id: &#39;ZCFBfxFPfz3iy9Rojvxva&#39;,</span><br/><span class="hl-7"> title: &#39;home&#39;,</span><br/><span class="hl-7"> localeCode: &#39;en&#39;,</span><br/><span class="hl-7"> path: &#39;/en&#39;,</span><br/><span class="hl-7"> slug: &#39;home&#39;,</span><br/><span class="hl-7"> totalDirectChildrenCount: 2</span><br/><span class="hl-7"> }</span><br/><span class="hl-7"> }</span><br/><br/><span class="hl-7">or</span><br/><br/><span class="hl-7"> { _tag: &#39;Left&#39;, left: &#39;Failed to find locale by code: en&#39; }</span><br/><span class="hl-7"> </span><br/><span class="hl-7"> */</span><br/><br/><span class="hl-4">const</span><span class="hl-1"> </span><span class="hl-5">blogPage</span><span class="hl-1"> = </span><span class="hl-0">client</span><span class="hl-1">.</span><span class="hl-6">pageById</span><span class="hl-1">(</span><span class="hl-3">&quot;en&quot;</span><span class="hl-1">, </span><span class="hl-3">&quot;4bkXR9tM8c1cGzTe7BMIgn&quot;</span><span class="hl-1">);</span><br/><span class="hl-0">console</span><span class="hl-1">.</span><span class="hl-6">log</span><span class="hl-1">(</span><span class="hl-0">blogPage</span><span class="hl-1">);</span><br/><span class="hl-7">/* prints </span><br/><span class="hl-7"> {</span><br/><span class="hl-7"> _tag: &quot;Right&quot;,</span><br/><span class="hl-7"> right: {</span><br/><span class="hl-7"> type: &quot;page&quot;,</span><br/><span class="hl-7"> id: &quot;4bkXR9tM8c1cGzTe7BMIgn&quot;,</span><br/><span class="hl-7"> title: &quot;blog&quot;,</span><br/><span class="hl-7"> localeCode: &quot;en&quot;,</span><br/><span class="hl-7"> path: &quot;/en/blog&quot;,</span><br/><span class="hl-7"> slug: &quot;blog&quot;,</span><br/><span class="hl-7"> totalDirectChildrenCount: 2,</span><br/><span class="hl-7"> },</span><br/><span class="hl-7"> }</span><br/><br/><span class="hl-7">or</span><br/><br/><span class="hl-7"> {</span><br/><span class="hl-7"> _tag: &quot;Left&quot;,</span><br/><span class="hl-7"> left: &quot;Failed to find page by id: 4bkXR9tM8c1cGzTe7BMIgn and locale: en&quot;,</span><br/><span class="hl-7"> }</span><br/><span class="hl-7"> </span><br/><span class="hl-7"> */</span>
162
+ </code><button>Copy</button></pre>
163
+ <a id="md:documentation" class="tsd-anchor"></a><h1><a href="#md:documentation">Documentation</a></h1><ul>
164
+ <li><a href="https://brightit.github.io/arboretum-sdk/">Arboretum SDK Documentation</a></li>
165
+ </ul>
166
+ </div></div>
167
+ <div class="col-sidebar">
168
+ <div class="page-menu">
169
+ <div class="tsd-navigation settings">
170
+ <details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
171
+ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)" id="icon-chevronDown"></path></svg>Settings</h3></summary>
172
+ <div class="tsd-accordion-details">
173
+ <div class="tsd-filter-visibility">
174
+ <h4 class="uppercase">Member Visibility</h4><form>
175
+ <ul id="tsd-filter-options">
176
+ <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li>
177
+ <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Private</span></label></li>
178
+ <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li>
179
+ <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div>
180
+ <div class="tsd-theme-toggle">
181
+ <h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div>
182
+ <details open class="tsd-index-accordion tsd-page-navigation"><summary class="tsd-accordion-summary">
183
+ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="#icon-chevronDown"></use></svg>On This Page</h3></summary>
184
+ <div class="tsd-accordion-details">
185
+ <ul>
186
+ <li>
187
+ <ul>
188
+ <li><a href="#md:introduction"><span>Introduction</span></a></li>
189
+ <li><a href="#md:installation"><span>Installation</span></a></li>
190
+ <li><a href="#md:create-client"><span>Create client</span></a></li>
191
+ <li>
192
+ <ul>
193
+ <li><a href="#md:client-configuration-options"><span>Client configuration options</span></a></li>
194
+ <li>
195
+ <ul>
196
+ <li><a href="#md:contentful-configuration-options"><span>Contentful configuration options</span></a></li>
197
+ <li><a href="#md:contentful-page-content-types-configuration"><span>Contentful page content types configuration</span></a></li>
198
+ <li><a href="#md:contentful-redirect-content-type-configuration"><span>Contentful redirect content type configuration</span></a></li></ul></li></ul></li>
199
+ <li><a href="#md:basic-usage"><span>Basic usage</span></a></li>
200
+ <li><a href="#md:documentation"><span>Documentation</span></a></li></ul></li></ul></div></details></div>
201
+ <div class="site-menu">
202
+ <nav class="tsd-navigation"><a href="modules.html" class="current"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>@bright.global/arboretum-<wbr/>sdk</span></a>
203
+ <ul class="tsd-small-nested-navigation">
204
+ <li><a href="types/ArboretumAliasT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4194304"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g></svg><span>Arboretum<wbr/>AliasT</span></a></li>
205
+ <li><a href="types/ArboretumClientConfigFromCdaParamsT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Client<wbr/>Config<wbr/>From<wbr/>Cda<wbr/>ParamsT</span></a></li>
206
+ <li><a href="types/ArboretumClientConfigFromCdaT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Client<wbr/>Config<wbr/>From<wbr/>CdaT</span></a></li>
207
+ <li><a href="types/ArboretumClientConfigFromCmaT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Client<wbr/>Config<wbr/>From<wbr/>CmaT</span></a></li>
208
+ <li><a href="types/ArboretumClientConfigT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Client<wbr/>ConfigT</span></a></li>
209
+ <li><a href="types/ArboretumClientContentfulConfigOptionsT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Client<wbr/>Contentful<wbr/>Config<wbr/>OptionsT</span></a></li>
210
+ <li><a href="types/ArboretumClientOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Client<wbr/>Options</span></a></li>
211
+ <li><a href="types/ArboretumClientOptionsT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Client<wbr/>OptionsT</span></a></li>
212
+ <li><a href="types/ArboretumClientT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>ClientT</span></a></li>
213
+ <li><a href="types/ArboretumPageNodeT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Page<wbr/>NodeT</span></a></li>
214
+ <li><a href="types/ArboretumPageT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>PageT</span></a></li>
215
+ <li><a href="types/ArboretumRedirectT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>RedirectT</span></a></li>
216
+ <li><a href="types/CachedDataT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Cached<wbr/>DataT</span></a></li>
217
+ <li><a href="types/Either.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Either</span></a></li>
218
+ <li><a href="types/EitherL.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>EitherL</span></a></li>
219
+ <li><a href="types/EitherR.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>EitherR</span></a></li>
220
+ <li><a href="types/LocaleT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>LocaleT</span></a></li>
221
+ <li><a href="types/OptionsT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>OptionsT</span></a></li>
222
+ <li><a href="functions/createArboretumClient.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-64"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)"></path></g></svg><span>create<wbr/>Arboretum<wbr/>Client</span></a></li>
223
+ <li><a href="functions/createArboretumClientFromCdaClient.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>create<wbr/>Arboretum<wbr/>Client<wbr/>From<wbr/>Cda<wbr/>Client</span></a></li>
224
+ <li><a href="functions/createArboretumClientFromCdaParams.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>create<wbr/>Arboretum<wbr/>Client<wbr/>From<wbr/>Cda<wbr/>Params</span></a></li>
225
+ <li><a href="functions/createArboretumClientFromCma.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>create<wbr/>Arboretum<wbr/>Client<wbr/>From<wbr/>Cma</span></a></li></ul></nav></div></div></div>
226
+ <div class="tsd-generator">
227
+ <p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
228
+ <div class="overlay"></div></body></html>
@@ -0,0 +1,88 @@
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>@bright.global/arboretum-sdk</title><meta name="description" content="Documentation for @bright.global/arboretum-sdk"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="assets/style.css"/><link rel="stylesheet" href="assets/highlight.css"/><script defer src="assets/main.js"></script><script async src="assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
2
+ <div class="tsd-toolbar-contents container">
3
+ <div class="table-cell" id="tsd-search" data-base=".">
4
+ <div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
5
+ <div class="field">
6
+ <div id="tsd-toolbar-links"></div></div>
7
+ <ul class="results">
8
+ <li class="state loading">Preparing search index...</li>
9
+ <li class="state failure">The search index is not available</li></ul><a href="index.html" class="title">@bright.global/arboretum-sdk</a></div>
10
+ <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
11
+ <div class="container container-main">
12
+ <div class="col-content">
13
+ <div class="tsd-page-title">
14
+ <h2>@bright.global/arboretum-sdk</h2></div>
15
+ <section class="tsd-panel-group tsd-index-group">
16
+ <section class="tsd-panel tsd-index-panel">
17
+ <h3 class="tsd-index-heading uppercase">Index</h3>
18
+ <section class="tsd-index-section">
19
+ <h3 class="tsd-index-heading">Type Aliases</h3>
20
+ <div class="tsd-index-list"><a href="types/ArboretumAliasT.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4194304"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g></svg><span>Arboretum<wbr/>AliasT</span></a>
21
+ <a href="types/ArboretumClientConfigFromCdaParamsT.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Client<wbr/>Config<wbr/>From<wbr/>Cda<wbr/>ParamsT</span></a>
22
+ <a href="types/ArboretumClientConfigFromCdaT.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Client<wbr/>Config<wbr/>From<wbr/>CdaT</span></a>
23
+ <a href="types/ArboretumClientConfigFromCmaT.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Client<wbr/>Config<wbr/>From<wbr/>CmaT</span></a>
24
+ <a href="types/ArboretumClientConfigT.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Client<wbr/>ConfigT</span></a>
25
+ <a href="types/ArboretumClientContentfulConfigOptionsT.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Client<wbr/>Contentful<wbr/>Config<wbr/>OptionsT</span></a>
26
+ <a href="types/ArboretumClientOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Client<wbr/>Options</span></a>
27
+ <a href="types/ArboretumClientOptionsT.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Client<wbr/>OptionsT</span></a>
28
+ <a href="types/ArboretumClientT.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>ClientT</span></a>
29
+ <a href="types/ArboretumPageNodeT.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Page<wbr/>NodeT</span></a>
30
+ <a href="types/ArboretumPageT.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>PageT</span></a>
31
+ <a href="types/ArboretumRedirectT.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>RedirectT</span></a>
32
+ <a href="types/CachedDataT.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Cached<wbr/>DataT</span></a>
33
+ <a href="types/Either.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Either</span></a>
34
+ <a href="types/EitherL.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>EitherL</span></a>
35
+ <a href="types/EitherR.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>EitherR</span></a>
36
+ <a href="types/LocaleT.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>LocaleT</span></a>
37
+ <a href="types/OptionsT.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>OptionsT</span></a>
38
+ </div></section>
39
+ <section class="tsd-index-section">
40
+ <h3 class="tsd-index-heading">Functions</h3>
41
+ <div class="tsd-index-list"><a href="functions/createArboretumClient.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-64"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)"></path></g></svg><span>create<wbr/>Arboretum<wbr/>Client</span></a>
42
+ <a href="functions/createArboretumClientFromCdaClient.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>create<wbr/>Arboretum<wbr/>Client<wbr/>From<wbr/>Cda<wbr/>Client</span></a>
43
+ <a href="functions/createArboretumClientFromCdaParams.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>create<wbr/>Arboretum<wbr/>Client<wbr/>From<wbr/>Cda<wbr/>Params</span></a>
44
+ <a href="functions/createArboretumClientFromCma.html" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>create<wbr/>Arboretum<wbr/>Client<wbr/>From<wbr/>Cma</span></a>
45
+ </div></section></section></section></div>
46
+ <div class="col-sidebar">
47
+ <div class="page-menu">
48
+ <div class="tsd-navigation settings">
49
+ <details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
50
+ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)" id="icon-chevronDown"></path></svg>Settings</h3></summary>
51
+ <div class="tsd-accordion-details">
52
+ <div class="tsd-filter-visibility">
53
+ <h4 class="uppercase">Member Visibility</h4><form>
54
+ <ul id="tsd-filter-options">
55
+ <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li>
56
+ <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Private</span></label></li>
57
+ <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li>
58
+ <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div>
59
+ <div class="tsd-theme-toggle">
60
+ <h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div>
61
+ <div class="site-menu">
62
+ <nav class="tsd-navigation"><a href="modules.html" class="current"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>@bright.global/arboretum-<wbr/>sdk</span></a>
63
+ <ul class="tsd-small-nested-navigation">
64
+ <li><a href="types/ArboretumAliasT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>AliasT</span></a></li>
65
+ <li><a href="types/ArboretumClientConfigFromCdaParamsT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Client<wbr/>Config<wbr/>From<wbr/>Cda<wbr/>ParamsT</span></a></li>
66
+ <li><a href="types/ArboretumClientConfigFromCdaT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Client<wbr/>Config<wbr/>From<wbr/>CdaT</span></a></li>
67
+ <li><a href="types/ArboretumClientConfigFromCmaT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Client<wbr/>Config<wbr/>From<wbr/>CmaT</span></a></li>
68
+ <li><a href="types/ArboretumClientConfigT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Client<wbr/>ConfigT</span></a></li>
69
+ <li><a href="types/ArboretumClientContentfulConfigOptionsT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Client<wbr/>Contentful<wbr/>Config<wbr/>OptionsT</span></a></li>
70
+ <li><a href="types/ArboretumClientOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Client<wbr/>Options</span></a></li>
71
+ <li><a href="types/ArboretumClientOptionsT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Client<wbr/>OptionsT</span></a></li>
72
+ <li><a href="types/ArboretumClientT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>ClientT</span></a></li>
73
+ <li><a href="types/ArboretumPageNodeT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Page<wbr/>NodeT</span></a></li>
74
+ <li><a href="types/ArboretumPageT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>PageT</span></a></li>
75
+ <li><a href="types/ArboretumRedirectT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>RedirectT</span></a></li>
76
+ <li><a href="types/CachedDataT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Cached<wbr/>DataT</span></a></li>
77
+ <li><a href="types/Either.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Either</span></a></li>
78
+ <li><a href="types/EitherL.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>EitherL</span></a></li>
79
+ <li><a href="types/EitherR.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>EitherR</span></a></li>
80
+ <li><a href="types/LocaleT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>LocaleT</span></a></li>
81
+ <li><a href="types/OptionsT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>OptionsT</span></a></li>
82
+ <li><a href="functions/createArboretumClient.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>create<wbr/>Arboretum<wbr/>Client</span></a></li>
83
+ <li><a href="functions/createArboretumClientFromCdaClient.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>create<wbr/>Arboretum<wbr/>Client<wbr/>From<wbr/>Cda<wbr/>Client</span></a></li>
84
+ <li><a href="functions/createArboretumClientFromCdaParams.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>create<wbr/>Arboretum<wbr/>Client<wbr/>From<wbr/>Cda<wbr/>Params</span></a></li>
85
+ <li><a href="functions/createArboretumClientFromCma.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>create<wbr/>Arboretum<wbr/>Client<wbr/>From<wbr/>Cma</span></a></li></ul></nav></div></div></div>
86
+ <div class="tsd-generator">
87
+ <p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
88
+ <div class="overlay"></div></body></html>
@@ -0,0 +1,70 @@
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>ArboretumAliasT | @bright.global/arboretum-sdk</title><meta name="description" content="Documentation for @bright.global/arboretum-sdk"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
2
+ <div class="tsd-toolbar-contents container">
3
+ <div class="table-cell" id="tsd-search" data-base="..">
4
+ <div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
5
+ <div class="field">
6
+ <div id="tsd-toolbar-links"></div></div>
7
+ <ul class="results">
8
+ <li class="state loading">Preparing search index...</li>
9
+ <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@bright.global/arboretum-sdk</a></div>
10
+ <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
11
+ <div class="container container-main">
12
+ <div class="col-content">
13
+ <div class="tsd-page-title">
14
+ <ul class="tsd-breadcrumb">
15
+ <li><a href="../modules.html">@bright.global/arboretum-sdk</a></li>
16
+ <li><a href="ArboretumAliasT.html">ArboretumAliasT</a></li></ul>
17
+ <h1>Type alias ArboretumAliasT</h1></div>
18
+ <div class="tsd-signature"><span class="tsd-kind-type-alias">Arboretum<wbr/>AliasT</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type ">ArboretumPageBaseT</span><span class="tsd-signature-symbol"> &amp; </span><span class="tsd-signature-symbol">{ </span><br/><span>    </span><span class="tsd-kind-property">pageId</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span>    </span><span class="tsd-kind-property">type</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;alias&quot;</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span></div>
19
+ <div class="tsd-type-declaration">
20
+ <h4>Type declaration</h4>
21
+ <ul class="tsd-parameters">
22
+ <li class="tsd-parameter">
23
+ <h5><span class="tsd-kind-property">page<wbr/>Id</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li>
24
+ <li class="tsd-parameter">
25
+ <h5><span class="tsd-kind-property">type</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">&quot;alias&quot;</span></h5></li></ul></div><aside class="tsd-sources">
26
+ <ul>
27
+ <li>Defined in <a href="https://github.com/BrightIT/arboretum-sdk/blob/09fe705/src/arboretum-client.ts#L81">arboretum-client.ts:81</a></li></ul></aside></div>
28
+ <div class="col-sidebar">
29
+ <div class="page-menu">
30
+ <div class="tsd-navigation settings">
31
+ <details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
32
+ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)" id="icon-chevronDown"></path></svg>Settings</h3></summary>
33
+ <div class="tsd-accordion-details">
34
+ <div class="tsd-filter-visibility">
35
+ <h4 class="uppercase">Member Visibility</h4><form>
36
+ <ul id="tsd-filter-options">
37
+ <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li>
38
+ <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Private</span></label></li>
39
+ <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li>
40
+ <li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div>
41
+ <div class="tsd-theme-toggle">
42
+ <h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div>
43
+ <div class="site-menu">
44
+ <nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>@bright.global/arboretum-<wbr/>sdk</span></a>
45
+ <ul class="tsd-small-nested-navigation">
46
+ <li><a href="ArboretumAliasT.html" class="current"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4194304"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-type-alias)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)"></path></g></svg><span>Arboretum<wbr/>AliasT</span></a></li>
47
+ <li><a href="ArboretumClientConfigFromCdaParamsT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Client<wbr/>Config<wbr/>From<wbr/>Cda<wbr/>ParamsT</span></a></li>
48
+ <li><a href="ArboretumClientConfigFromCdaT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Client<wbr/>Config<wbr/>From<wbr/>CdaT</span></a></li>
49
+ <li><a href="ArboretumClientConfigFromCmaT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Client<wbr/>Config<wbr/>From<wbr/>CmaT</span></a></li>
50
+ <li><a href="ArboretumClientConfigT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Client<wbr/>ConfigT</span></a></li>
51
+ <li><a href="ArboretumClientContentfulConfigOptionsT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Client<wbr/>Contentful<wbr/>Config<wbr/>OptionsT</span></a></li>
52
+ <li><a href="ArboretumClientOptions.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Client<wbr/>Options</span></a></li>
53
+ <li><a href="ArboretumClientOptionsT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Client<wbr/>OptionsT</span></a></li>
54
+ <li><a href="ArboretumClientT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>ClientT</span></a></li>
55
+ <li><a href="ArboretumPageNodeT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>Page<wbr/>NodeT</span></a></li>
56
+ <li><a href="ArboretumPageT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>PageT</span></a></li>
57
+ <li><a href="ArboretumRedirectT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Arboretum<wbr/>RedirectT</span></a></li>
58
+ <li><a href="CachedDataT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Cached<wbr/>DataT</span></a></li>
59
+ <li><a href="Either.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>Either</span></a></li>
60
+ <li><a href="EitherL.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>EitherL</span></a></li>
61
+ <li><a href="EitherR.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>EitherR</span></a></li>
62
+ <li><a href="LocaleT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>LocaleT</span></a></li>
63
+ <li><a href="OptionsT.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-4194304"></use></svg><span>OptionsT</span></a></li>
64
+ <li><a href="../functions/createArboretumClient.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-64"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)"></path></g></svg><span>create<wbr/>Arboretum<wbr/>Client</span></a></li>
65
+ <li><a href="../functions/createArboretumClientFromCdaClient.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>create<wbr/>Arboretum<wbr/>Client<wbr/>From<wbr/>Cda<wbr/>Client</span></a></li>
66
+ <li><a href="../functions/createArboretumClientFromCdaParams.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>create<wbr/>Arboretum<wbr/>Client<wbr/>From<wbr/>Cda<wbr/>Params</span></a></li>
67
+ <li><a href="../functions/createArboretumClientFromCma.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-64"></use></svg><span>create<wbr/>Arboretum<wbr/>Client<wbr/>From<wbr/>Cma</span></a></li></ul></nav></div></div></div>
68
+ <div class="tsd-generator">
69
+ <p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
70
+ <div class="overlay"></div></body></html>