@prismicio/client 7.21.0 → 7.21.1

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 (809) hide show
  1. package/dist/Client.cjs +920 -1256
  2. package/dist/Client.cjs.map +1 -1
  3. package/dist/Client.d.cts +704 -0
  4. package/dist/Client.d.cts.map +1 -0
  5. package/dist/Client.d.ts +678 -955
  6. package/dist/Client.d.ts.map +1 -0
  7. package/dist/Client.js +913 -1249
  8. package/dist/Client.js.map +1 -1
  9. package/dist/Migration.cjs +283 -296
  10. package/dist/Migration.cjs.map +1 -1
  11. package/dist/Migration.d.cts +216 -0
  12. package/dist/Migration.d.cts.map +1 -0
  13. package/dist/Migration.d.ts +197 -194
  14. package/dist/Migration.d.ts.map +1 -0
  15. package/dist/Migration.js +281 -294
  16. package/dist/Migration.js.map +1 -1
  17. package/dist/WriteClient.cjs +487 -574
  18. package/dist/WriteClient.cjs.map +1 -1
  19. package/dist/WriteClient.d.cts +262 -0
  20. package/dist/WriteClient.d.cts.map +1 -0
  21. package/dist/WriteClient.d.ts +226 -245
  22. package/dist/WriteClient.d.ts.map +1 -0
  23. package/dist/WriteClient.js +482 -569
  24. package/dist/WriteClient.js.map +1 -1
  25. package/dist/_virtual/rolldown_runtime.cjs +14 -0
  26. package/dist/_virtual/rolldown_runtime.js +13 -0
  27. package/dist/buildQueryURL.cjs +89 -59
  28. package/dist/buildQueryURL.cjs.map +1 -1
  29. package/dist/buildQueryURL.d.cts +212 -0
  30. package/dist/buildQueryURL.d.cts.map +1 -0
  31. package/dist/buildQueryURL.d.ts +146 -151
  32. package/dist/buildQueryURL.d.ts.map +1 -0
  33. package/dist/buildQueryURL.js +89 -59
  34. package/dist/buildQueryURL.js.map +1 -1
  35. package/dist/cookie.cjs +17 -3
  36. package/dist/cookie.cjs.map +1 -1
  37. package/dist/cookie.d.cts +11 -0
  38. package/dist/cookie.d.cts.map +1 -0
  39. package/dist/cookie.d.ts +7 -1
  40. package/dist/cookie.d.ts.map +1 -0
  41. package/dist/cookie.js +12 -4
  42. package/dist/cookie.js.map +1 -1
  43. package/dist/createClient.cjs +32 -5
  44. package/dist/createClient.cjs.map +1 -1
  45. package/dist/createClient.d.cts +41 -0
  46. package/dist/createClient.d.cts.map +1 -0
  47. package/dist/createClient.d.ts +11 -5
  48. package/dist/createClient.d.ts.map +1 -0
  49. package/dist/createClient.js +31 -4
  50. package/dist/createClient.js.map +1 -1
  51. package/dist/createMigration.cjs +21 -5
  52. package/dist/createMigration.cjs.map +1 -1
  53. package/dist/createMigration.d.cts +30 -0
  54. package/dist/createMigration.d.cts.map +1 -0
  55. package/dist/createMigration.d.ts +10 -4
  56. package/dist/createMigration.d.ts.map +1 -0
  57. package/dist/createMigration.js +20 -4
  58. package/dist/createMigration.js.map +1 -1
  59. package/dist/createWriteClient.cjs +29 -5
  60. package/dist/createWriteClient.cjs.map +1 -1
  61. package/dist/createWriteClient.d.cts +38 -0
  62. package/dist/createWriteClient.d.cts.map +1 -0
  63. package/dist/createWriteClient.d.ts +10 -4
  64. package/dist/createWriteClient.d.ts.map +1 -0
  65. package/dist/createWriteClient.js +28 -4
  66. package/dist/createWriteClient.js.map +1 -1
  67. package/dist/errors.cjs +31 -0
  68. package/dist/errors.cjs.map +1 -0
  69. package/dist/errors.d.cts +46 -0
  70. package/dist/errors.d.cts.map +1 -0
  71. package/dist/errors.d.ts +46 -0
  72. package/dist/errors.d.ts.map +1 -0
  73. package/dist/errors.js +22 -0
  74. package/dist/errors.js.map +1 -0
  75. package/dist/filter.cjs +93 -236
  76. package/dist/filter.cjs.map +1 -1
  77. package/dist/filter.d.cts +213 -0
  78. package/dist/filter.d.cts.map +1 -0
  79. package/dist/filter.d.ts +212 -208
  80. package/dist/filter.d.ts.map +1 -0
  81. package/dist/filter.js +93 -237
  82. package/dist/filter.js.map +1 -1
  83. package/dist/getGraphQLEndpoint.cjs +18 -10
  84. package/dist/getGraphQLEndpoint.cjs.map +1 -1
  85. package/dist/getGraphQLEndpoint.d.cts +14 -0
  86. package/dist/getGraphQLEndpoint.d.cts.map +1 -0
  87. package/dist/getGraphQLEndpoint.d.ts +5 -1
  88. package/dist/getGraphQLEndpoint.d.ts.map +1 -0
  89. package/dist/getGraphQLEndpoint.js +18 -10
  90. package/dist/getGraphQLEndpoint.js.map +1 -1
  91. package/dist/getRepositoryEndpoint.cjs +27 -10
  92. package/dist/getRepositoryEndpoint.cjs.map +1 -1
  93. package/dist/getRepositoryEndpoint.d.cts +23 -0
  94. package/dist/getRepositoryEndpoint.d.cts.map +1 -0
  95. package/dist/getRepositoryEndpoint.d.ts +5 -1
  96. package/dist/getRepositoryEndpoint.d.ts.map +1 -0
  97. package/dist/getRepositoryEndpoint.js +27 -10
  98. package/dist/getRepositoryEndpoint.js.map +1 -1
  99. package/dist/getRepositoryName.cjs +22 -14
  100. package/dist/getRepositoryName.cjs.map +1 -1
  101. package/dist/getRepositoryName.d.cts +16 -0
  102. package/dist/getRepositoryName.d.cts.map +1 -0
  103. package/dist/getRepositoryName.d.ts +5 -1
  104. package/dist/getRepositoryName.d.ts.map +1 -0
  105. package/dist/getRepositoryName.js +23 -15
  106. package/dist/getRepositoryName.js.map +1 -1
  107. package/dist/getToolbarSrc.cjs +42 -10
  108. package/dist/getToolbarSrc.cjs.map +1 -1
  109. package/dist/getToolbarSrc.d.cts +38 -0
  110. package/dist/getToolbarSrc.d.cts.map +1 -0
  111. package/dist/getToolbarSrc.d.ts +5 -1
  112. package/dist/getToolbarSrc.d.ts.map +1 -0
  113. package/dist/getToolbarSrc.js +42 -10
  114. package/dist/getToolbarSrc.js.map +1 -1
  115. package/dist/helpers/asDate.cjs +36 -11
  116. package/dist/helpers/asDate.cjs.map +1 -1
  117. package/dist/helpers/asDate.d.cts +29 -0
  118. package/dist/helpers/asDate.d.cts.map +1 -0
  119. package/dist/helpers/asDate.d.ts +9 -4
  120. package/dist/helpers/asDate.d.ts.map +1 -0
  121. package/dist/helpers/asDate.js +36 -12
  122. package/dist/helpers/asDate.js.map +1 -1
  123. package/dist/helpers/asHTML.cjs +76 -79
  124. package/dist/helpers/asHTML.cjs.map +1 -1
  125. package/dist/helpers/asHTML.d.cts +147 -0
  126. package/dist/helpers/asHTML.d.cts.map +1 -0
  127. package/dist/helpers/asHTML.d.ts +76 -78
  128. package/dist/helpers/asHTML.d.ts.map +1 -0
  129. package/dist/helpers/asHTML.js +74 -77
  130. package/dist/helpers/asHTML.js.map +1 -1
  131. package/dist/helpers/asImagePixelDensitySrcSet.cjs +57 -18
  132. package/dist/helpers/asImagePixelDensitySrcSet.cjs.map +1 -1
  133. package/dist/helpers/asImagePixelDensitySrcSet.d.cts +59 -0
  134. package/dist/helpers/asImagePixelDensitySrcSet.d.cts.map +1 -0
  135. package/dist/helpers/asImagePixelDensitySrcSet.d.ts +18 -13
  136. package/dist/helpers/asImagePixelDensitySrcSet.d.ts.map +1 -0
  137. package/dist/helpers/asImagePixelDensitySrcSet.js +57 -18
  138. package/dist/helpers/asImagePixelDensitySrcSet.js.map +1 -1
  139. package/dist/helpers/asImageSrc.cjs +30 -10
  140. package/dist/helpers/asImageSrc.cjs.map +1 -1
  141. package/dist/helpers/asImageSrc.d.cts +34 -0
  142. package/dist/helpers/asImageSrc.d.cts.map +1 -0
  143. package/dist/helpers/asImageSrc.d.ts +9 -4
  144. package/dist/helpers/asImageSrc.d.ts.map +1 -0
  145. package/dist/helpers/asImageSrc.js +30 -10
  146. package/dist/helpers/asImageSrc.js.map +1 -1
  147. package/dist/helpers/asImageWidthSrcSet.cjs +76 -42
  148. package/dist/helpers/asImageWidthSrcSet.cjs.map +1 -1
  149. package/dist/helpers/asImageWidthSrcSet.d.cts +67 -0
  150. package/dist/helpers/asImageWidthSrcSet.d.cts.map +1 -0
  151. package/dist/helpers/asImageWidthSrcSet.d.ts +19 -14
  152. package/dist/helpers/asImageWidthSrcSet.d.ts.map +1 -0
  153. package/dist/helpers/asImageWidthSrcSet.js +76 -42
  154. package/dist/helpers/asImageWidthSrcSet.js.map +1 -1
  155. package/dist/helpers/asLink.cjs +26 -44
  156. package/dist/helpers/asLink.cjs.map +1 -1
  157. package/dist/helpers/asLink.d.cts +83 -0
  158. package/dist/helpers/asLink.d.cts.map +1 -0
  159. package/dist/helpers/asLink.d.ts +58 -53
  160. package/dist/helpers/asLink.d.ts.map +1 -0
  161. package/dist/helpers/asLink.js +25 -43
  162. package/dist/helpers/asLink.js.map +1 -1
  163. package/dist/helpers/asLinkAttrs.cjs +44 -25
  164. package/dist/helpers/asLinkAttrs.cjs.map +1 -1
  165. package/dist/helpers/asLinkAttrs.d.cts +51 -0
  166. package/dist/helpers/asLinkAttrs.d.cts.map +1 -0
  167. package/dist/helpers/asLinkAttrs.d.ts +23 -19
  168. package/dist/helpers/asLinkAttrs.d.ts.map +1 -0
  169. package/dist/helpers/asLinkAttrs.js +43 -24
  170. package/dist/helpers/asLinkAttrs.js.map +1 -1
  171. package/dist/helpers/asText.cjs +15 -20
  172. package/dist/helpers/asText.cjs.map +1 -1
  173. package/dist/helpers/asText.d.cts +62 -0
  174. package/dist/helpers/asText.d.cts.map +1 -0
  175. package/dist/helpers/asText.d.ts +48 -43
  176. package/dist/helpers/asText.d.ts.map +1 -0
  177. package/dist/helpers/asText.js +15 -20
  178. package/dist/helpers/asText.js.map +1 -1
  179. package/dist/helpers/documentToLinkField.cjs +30 -23
  180. package/dist/helpers/documentToLinkField.cjs.map +1 -1
  181. package/dist/helpers/documentToLinkField.d.cts +21 -0
  182. package/dist/helpers/documentToLinkField.d.cts.map +1 -0
  183. package/dist/helpers/documentToLinkField.d.ts +8 -4
  184. package/dist/helpers/documentToLinkField.d.ts.map +1 -0
  185. package/dist/helpers/documentToLinkField.js +30 -23
  186. package/dist/helpers/documentToLinkField.js.map +1 -1
  187. package/dist/helpers/isFilled.cjs +215 -42
  188. package/dist/helpers/isFilled.cjs.map +1 -1
  189. package/dist/helpers/isFilled.d.cts +199 -0
  190. package/dist/helpers/isFilled.d.cts.map +1 -0
  191. package/dist/helpers/isFilled.d.ts +51 -43
  192. package/dist/helpers/isFilled.d.ts.map +1 -0
  193. package/dist/helpers/isFilled.js +210 -44
  194. package/dist/helpers/isFilled.js.map +1 -1
  195. package/dist/helpers/mapSliceZone.cjs +50 -39
  196. package/dist/helpers/mapSliceZone.cjs.map +1 -1
  197. package/dist/helpers/mapSliceZone.d.cts +139 -0
  198. package/dist/helpers/mapSliceZone.d.cts.map +1 -0
  199. package/dist/helpers/mapSliceZone.d.ts +37 -34
  200. package/dist/helpers/mapSliceZone.d.ts.map +1 -0
  201. package/dist/helpers/mapSliceZone.js +50 -40
  202. package/dist/helpers/mapSliceZone.js.map +1 -1
  203. package/dist/index.cjs +109 -96
  204. package/dist/index.cjs.map +1 -1
  205. package/dist/index.d.cts +173 -0
  206. package/dist/index.d.cts.map +1 -0
  207. package/dist/index.d.ts +142 -173
  208. package/dist/index.d.ts.map +1 -0
  209. package/dist/index.js +31 -75
  210. package/dist/index.js.map +1 -1
  211. package/dist/isRepositoryEndpoint.cjs +20 -9
  212. package/dist/isRepositoryEndpoint.cjs.map +1 -1
  213. package/dist/isRepositoryEndpoint.d.cts +14 -0
  214. package/dist/isRepositoryEndpoint.d.cts.map +1 -0
  215. package/dist/isRepositoryEndpoint.d.ts +5 -1
  216. package/dist/isRepositoryEndpoint.d.ts.map +1 -0
  217. package/dist/isRepositoryEndpoint.js +20 -10
  218. package/dist/isRepositoryEndpoint.js.map +1 -1
  219. package/dist/isRepositoryName.cjs +14 -4
  220. package/dist/isRepositoryName.cjs.map +1 -1
  221. package/dist/isRepositoryName.d.cts +13 -0
  222. package/dist/isRepositoryName.d.cts.map +1 -0
  223. package/dist/isRepositoryName.d.ts +5 -1
  224. package/dist/isRepositoryName.d.ts.map +1 -0
  225. package/dist/isRepositoryName.js +14 -5
  226. package/dist/isRepositoryName.js.map +1 -1
  227. package/dist/lib/devMsg.cjs +22 -5
  228. package/dist/lib/devMsg.cjs.map +1 -1
  229. package/dist/lib/devMsg.js +23 -6
  230. package/dist/lib/devMsg.js.map +1 -1
  231. package/dist/lib/escapeHTML.cjs +36 -39
  232. package/dist/lib/escapeHTML.cjs.map +1 -1
  233. package/dist/lib/escapeHTML.js +36 -40
  234. package/dist/lib/escapeHTML.js.map +1 -1
  235. package/dist/lib/getOptionalLinkProperties.cjs +19 -11
  236. package/dist/lib/getOptionalLinkProperties.cjs.map +1 -1
  237. package/dist/lib/getOptionalLinkProperties.js +19 -12
  238. package/dist/lib/getOptionalLinkProperties.js.map +1 -1
  239. package/dist/lib/getPreviewCookie.cjs +25 -16
  240. package/dist/lib/getPreviewCookie.cjs.map +1 -1
  241. package/dist/lib/getPreviewCookie.js +25 -16
  242. package/dist/lib/getPreviewCookie.js.map +1 -1
  243. package/dist/lib/isInternalURL.cjs +15 -6
  244. package/dist/lib/isInternalURL.cjs.map +1 -1
  245. package/dist/lib/isInternalURL.js +15 -7
  246. package/dist/lib/isInternalURL.js.map +1 -1
  247. package/dist/lib/isMigrationValue.cjs +65 -12
  248. package/dist/lib/isMigrationValue.cjs.map +1 -1
  249. package/dist/lib/isMigrationValue.js +63 -13
  250. package/dist/lib/isMigrationValue.js.map +1 -1
  251. package/dist/lib/isValue.cjs +93 -36
  252. package/dist/lib/isValue.cjs.map +1 -1
  253. package/dist/lib/isValue.js +93 -40
  254. package/dist/lib/isValue.js.map +1 -1
  255. package/dist/lib/pLimit.cjs +51 -44
  256. package/dist/lib/pLimit.cjs.map +1 -1
  257. package/dist/lib/pLimit.js +51 -45
  258. package/dist/lib/pLimit.js.map +1 -1
  259. package/dist/lib/request.cjs +54 -35
  260. package/dist/lib/request.cjs.map +1 -1
  261. package/dist/lib/request.d.cts +61 -0
  262. package/dist/lib/request.d.cts.map +1 -0
  263. package/dist/lib/request.d.ts +38 -50
  264. package/dist/lib/request.d.ts.map +1 -0
  265. package/dist/lib/request.js +54 -35
  266. package/dist/lib/request.js.map +1 -1
  267. package/dist/lib/resolveMigrationDocumentData.cjs +147 -123
  268. package/dist/lib/resolveMigrationDocumentData.cjs.map +1 -1
  269. package/dist/lib/resolveMigrationDocumentData.js +143 -120
  270. package/dist/lib/resolveMigrationDocumentData.js.map +1 -1
  271. package/dist/lib/serializerHelpers.cjs +73 -91
  272. package/dist/lib/serializerHelpers.cjs.map +1 -1
  273. package/dist/lib/serializerHelpers.js +71 -94
  274. package/dist/lib/serializerHelpers.js.map +1 -1
  275. package/dist/lib/throttledWarn.cjs +27 -0
  276. package/dist/lib/throttledWarn.cjs.map +1 -0
  277. package/dist/lib/throttledWarn.js +26 -0
  278. package/dist/lib/throttledWarn.js.map +1 -0
  279. package/dist/lib/validateAssetMetadata.cjs +40 -20
  280. package/dist/lib/validateAssetMetadata.cjs.map +1 -1
  281. package/dist/lib/validateAssetMetadata.js +41 -21
  282. package/dist/lib/validateAssetMetadata.js.map +1 -1
  283. package/dist/package.cjs +19 -0
  284. package/dist/package.cjs.map +1 -0
  285. package/dist/package.js +7 -0
  286. package/dist/package.js.map +1 -0
  287. package/dist/richtext/asText.cjs +18 -10
  288. package/dist/richtext/asText.cjs.map +1 -1
  289. package/dist/richtext/asText.d.cts +18 -0
  290. package/dist/richtext/asText.d.cts.map +1 -0
  291. package/dist/richtext/asText.d.ts +8 -2
  292. package/dist/richtext/asText.d.ts.map +1 -0
  293. package/dist/richtext/asText.js +18 -11
  294. package/dist/richtext/asText.js.map +1 -1
  295. package/dist/richtext/asTree.cjs +106 -107
  296. package/dist/richtext/asTree.cjs.map +1 -1
  297. package/dist/richtext/asTree.d.cts +20 -0
  298. package/dist/richtext/asTree.d.cts.map +1 -0
  299. package/dist/richtext/asTree.d.ts +9 -3
  300. package/dist/richtext/asTree.d.ts.map +1 -0
  301. package/dist/richtext/asTree.js +106 -107
  302. package/dist/richtext/asTree.js.map +1 -1
  303. package/dist/richtext/composeSerializers.cjs +28 -14
  304. package/dist/richtext/composeSerializers.cjs.map +1 -1
  305. package/dist/richtext/composeSerializers.d.cts +22 -0
  306. package/dist/richtext/composeSerializers.d.cts.map +1 -0
  307. package/dist/richtext/composeSerializers.d.ts +8 -2
  308. package/dist/richtext/composeSerializers.d.ts.map +1 -0
  309. package/dist/richtext/composeSerializers.js +28 -15
  310. package/dist/richtext/composeSerializers.js.map +1 -1
  311. package/dist/richtext/serialize.cjs +30 -14
  312. package/dist/richtext/serialize.cjs.map +1 -1
  313. package/dist/richtext/serialize.d.cts +25 -0
  314. package/dist/richtext/serialize.d.cts.map +1 -0
  315. package/dist/richtext/serialize.d.ts +9 -3
  316. package/dist/richtext/serialize.d.ts.map +1 -0
  317. package/dist/richtext/serialize.js +30 -14
  318. package/dist/richtext/serialize.js.map +1 -1
  319. package/dist/richtext/types.cjs +10 -8
  320. package/dist/richtext/types.cjs.map +1 -1
  321. package/dist/richtext/types.d.cts +71 -0
  322. package/dist/richtext/types.d.cts.map +1 -0
  323. package/dist/richtext/types.d.ts +43 -43
  324. package/dist/richtext/types.d.ts.map +1 -0
  325. package/dist/richtext/types.js +10 -8
  326. package/dist/richtext/types.js.map +1 -1
  327. package/dist/richtext/wrapMapSerializer.cjs +29 -21
  328. package/dist/richtext/wrapMapSerializer.cjs.map +1 -1
  329. package/dist/richtext/wrapMapSerializer.d.cts +21 -0
  330. package/dist/richtext/wrapMapSerializer.d.cts.map +1 -0
  331. package/dist/richtext/wrapMapSerializer.d.ts +8 -2
  332. package/dist/richtext/wrapMapSerializer.d.ts.map +1 -0
  333. package/dist/richtext/wrapMapSerializer.js +29 -21
  334. package/dist/richtext/wrapMapSerializer.js.map +1 -1
  335. package/dist/richtext.cjs +13 -15
  336. package/dist/richtext.d.cts +8 -0
  337. package/dist/richtext.d.ts +8 -0
  338. package/dist/richtext.js +4 -11
  339. package/dist/types/api/asset/asset.d.cts +97 -0
  340. package/dist/types/api/asset/asset.d.cts.map +1 -0
  341. package/dist/types/api/asset/asset.d.ts +87 -167
  342. package/dist/types/api/asset/asset.d.ts.map +1 -0
  343. package/dist/types/api/asset/tag.d.cts +35 -0
  344. package/dist/types/api/asset/tag.d.cts.map +1 -0
  345. package/dist/types/api/asset/tag.d.ts +29 -47
  346. package/dist/types/api/asset/tag.d.ts.map +1 -0
  347. package/dist/types/api/integration.d.cts +34 -0
  348. package/dist/types/api/integration.d.cts.map +1 -0
  349. package/dist/types/api/integration.d.ts +17 -11
  350. package/dist/types/api/integration.d.ts.map +1 -0
  351. package/dist/types/api/query.d.cts +49 -0
  352. package/dist/types/api/query.d.cts.map +1 -0
  353. package/dist/types/api/query.d.ts +40 -34
  354. package/dist/types/api/query.d.ts.map +1 -0
  355. package/dist/types/api/ref.d.cts +36 -0
  356. package/dist/types/api/ref.d.cts.map +1 -0
  357. package/dist/types/api/ref.d.ts +30 -26
  358. package/dist/types/api/ref.d.ts.map +1 -0
  359. package/dist/types/api/release.d.cts +17 -0
  360. package/dist/types/api/release.d.cts.map +1 -0
  361. package/dist/types/api/release.d.ts +8 -2
  362. package/dist/types/api/release.d.ts.map +1 -0
  363. package/dist/types/api/repository.d.cts +115 -0
  364. package/dist/types/api/repository.d.cts.map +1 -0
  365. package/dist/types/api/repository.d.ts +90 -84
  366. package/dist/types/api/repository.d.ts.map +1 -0
  367. package/dist/types/api/tags.d.cts +13 -0
  368. package/dist/types/api/tags.d.cts.map +1 -0
  369. package/dist/types/api/tags.d.ts +5 -1
  370. package/dist/types/api/tags.d.ts.map +1 -0
  371. package/dist/types/migration/Asset.cjs +34 -29
  372. package/dist/types/migration/Asset.cjs.map +1 -1
  373. package/dist/types/migration/Asset.d.cts +109 -0
  374. package/dist/types/migration/Asset.d.cts.map +1 -0
  375. package/dist/types/migration/Asset.d.ts +89 -88
  376. package/dist/types/migration/Asset.d.ts.map +1 -0
  377. package/dist/types/migration/Asset.js +33 -29
  378. package/dist/types/migration/Asset.js.map +1 -1
  379. package/dist/types/migration/ContentRelationship.d.cts +15 -0
  380. package/dist/types/migration/ContentRelationship.d.cts.map +1 -0
  381. package/dist/types/migration/ContentRelationship.d.ts +10 -11
  382. package/dist/types/migration/ContentRelationship.d.ts.map +1 -0
  383. package/dist/types/migration/Document.cjs +50 -43
  384. package/dist/types/migration/Document.cjs.map +1 -1
  385. package/dist/types/migration/Document.d.cts +97 -0
  386. package/dist/types/migration/Document.d.cts.map +1 -0
  387. package/dist/types/migration/Document.d.ts +62 -59
  388. package/dist/types/migration/Document.d.ts.map +1 -0
  389. package/dist/types/migration/Document.js +49 -43
  390. package/dist/types/migration/Document.js.map +1 -1
  391. package/dist/types/model/boolean.d.cts +21 -0
  392. package/dist/types/model/boolean.d.cts.map +1 -0
  393. package/dist/types/model/boolean.d.ts +15 -9
  394. package/dist/types/model/boolean.d.ts.map +1 -0
  395. package/dist/types/model/color.d.cts +19 -0
  396. package/dist/types/model/color.d.cts.map +1 -0
  397. package/dist/types/model/color.d.ts +13 -7
  398. package/dist/types/model/color.d.ts.map +1 -0
  399. package/dist/types/model/contentRelationship.d.cts +59 -0
  400. package/dist/types/model/contentRelationship.d.cts.map +1 -0
  401. package/dist/types/model/contentRelationship.d.ts +33 -27
  402. package/dist/types/model/contentRelationship.d.ts.map +1 -0
  403. package/dist/types/model/customType.d.cts +54 -0
  404. package/dist/types/model/customType.d.cts.map +1 -0
  405. package/dist/types/model/customType.d.ts +36 -30
  406. package/dist/types/model/customType.d.ts.map +1 -0
  407. package/dist/types/model/date.d.cts +20 -0
  408. package/dist/types/model/date.d.cts.map +1 -0
  409. package/dist/types/model/date.d.ts +14 -8
  410. package/dist/types/model/date.d.ts.map +1 -0
  411. package/dist/types/model/embed.d.cts +19 -0
  412. package/dist/types/model/embed.d.cts.map +1 -0
  413. package/dist/types/model/embed.d.ts +13 -7
  414. package/dist/types/model/embed.d.ts.map +1 -0
  415. package/dist/types/model/geoPoint.d.cts +18 -0
  416. package/dist/types/model/geoPoint.d.cts.map +1 -0
  417. package/dist/types/model/geoPoint.d.ts +12 -6
  418. package/dist/types/model/geoPoint.d.ts.map +1 -0
  419. package/dist/types/model/group.d.cts +29 -0
  420. package/dist/types/model/group.d.cts.map +1 -0
  421. package/dist/types/model/group.d.ts +14 -8
  422. package/dist/types/model/group.d.ts.map +1 -0
  423. package/dist/types/model/image.d.cts +37 -0
  424. package/dist/types/model/image.d.cts.map +1 -0
  425. package/dist/types/model/image.d.ts +19 -13
  426. package/dist/types/model/image.d.ts.map +1 -0
  427. package/dist/types/model/integration.d.cts +20 -0
  428. package/dist/types/model/integration.d.cts.map +1 -0
  429. package/dist/types/model/integration.d.ts +14 -8
  430. package/dist/types/model/integration.d.ts.map +1 -0
  431. package/dist/types/model/keyText.d.cts +19 -0
  432. package/dist/types/model/keyText.d.cts.map +1 -0
  433. package/dist/types/model/keyText.d.ts +13 -7
  434. package/dist/types/model/keyText.d.ts.map +1 -0
  435. package/dist/types/model/link.cjs +13 -6
  436. package/dist/types/model/link.cjs.map +1 -1
  437. package/dist/types/model/link.d.cts +34 -0
  438. package/dist/types/model/link.d.cts.map +1 -0
  439. package/dist/types/model/link.d.ts +22 -16
  440. package/dist/types/model/link.d.ts.map +1 -0
  441. package/dist/types/model/link.js +13 -7
  442. package/dist/types/model/link.js.map +1 -1
  443. package/dist/types/model/linkToMedia.d.cts +23 -0
  444. package/dist/types/model/linkToMedia.d.cts.map +1 -0
  445. package/dist/types/model/linkToMedia.d.ts +17 -11
  446. package/dist/types/model/linkToMedia.d.ts.map +1 -0
  447. package/dist/types/model/number.d.cts +21 -0
  448. package/dist/types/model/number.d.cts.map +1 -0
  449. package/dist/types/model/number.d.ts +15 -9
  450. package/dist/types/model/number.d.ts.map +1 -0
  451. package/dist/types/model/range.d.cts +20 -0
  452. package/dist/types/model/range.d.cts.map +1 -0
  453. package/dist/types/model/range.d.ts +16 -10
  454. package/dist/types/model/range.d.ts.map +1 -0
  455. package/dist/types/model/richText.d.cts +43 -0
  456. package/dist/types/model/richText.d.cts.map +1 -0
  457. package/dist/types/model/richText.d.ts +26 -20
  458. package/dist/types/model/richText.d.ts.map +1 -0
  459. package/dist/types/model/select.d.cts +24 -0
  460. package/dist/types/model/select.d.cts.map +1 -0
  461. package/dist/types/model/select.d.ts +15 -9
  462. package/dist/types/model/select.d.ts.map +1 -0
  463. package/dist/types/model/separator.d.cts +16 -0
  464. package/dist/types/model/separator.d.cts.map +1 -0
  465. package/dist/types/model/separator.d.ts +12 -6
  466. package/dist/types/model/separator.d.ts.map +1 -0
  467. package/dist/types/model/sharedSlice.d.cts +22 -0
  468. package/dist/types/model/sharedSlice.d.cts.map +1 -0
  469. package/dist/types/model/sharedSlice.d.ts +14 -8
  470. package/dist/types/model/sharedSlice.d.ts.map +1 -0
  471. package/dist/types/model/sharedSliceVariation.d.cts +25 -0
  472. package/dist/types/model/sharedSliceVariation.d.cts.map +1 -0
  473. package/dist/types/model/sharedSliceVariation.d.ts +16 -10
  474. package/dist/types/model/sharedSliceVariation.d.ts.map +1 -0
  475. package/dist/types/model/slice.cjs +12 -5
  476. package/dist/types/model/slice.cjs.map +1 -1
  477. package/dist/types/model/slice.d.cts +39 -0
  478. package/dist/types/model/slice.d.cts.map +1 -0
  479. package/dist/types/model/slice.d.ts +21 -15
  480. package/dist/types/model/slice.d.ts.map +1 -0
  481. package/dist/types/model/slice.js +12 -6
  482. package/dist/types/model/slice.js.map +1 -1
  483. package/dist/types/model/sliceZone.cjs +12 -5
  484. package/dist/types/model/sliceZone.cjs.map +1 -1
  485. package/dist/types/model/sliceZone.d.cts +47 -0
  486. package/dist/types/model/sliceZone.d.cts.map +1 -0
  487. package/dist/types/model/sliceZone.d.ts +23 -17
  488. package/dist/types/model/sliceZone.d.ts.map +1 -0
  489. package/dist/types/model/sliceZone.js +12 -6
  490. package/dist/types/model/sliceZone.js.map +1 -1
  491. package/dist/types/model/table.d.cts +18 -0
  492. package/dist/types/model/table.d.cts.map +1 -0
  493. package/dist/types/model/table.d.ts +12 -6
  494. package/dist/types/model/table.d.ts.map +1 -0
  495. package/dist/types/model/timestamp.d.cts +20 -0
  496. package/dist/types/model/timestamp.d.cts.map +1 -0
  497. package/dist/types/model/timestamp.d.ts +14 -8
  498. package/dist/types/model/timestamp.d.ts.map +1 -0
  499. package/dist/types/model/title.d.cts +13 -0
  500. package/dist/types/model/title.d.cts.map +1 -0
  501. package/dist/types/model/title.d.ts +8 -2
  502. package/dist/types/model/title.d.ts.map +1 -0
  503. package/dist/types/model/types.cjs +29 -36
  504. package/dist/types/model/types.cjs.map +1 -1
  505. package/dist/types/model/types.d.cts +82 -0
  506. package/dist/types/model/types.d.cts.map +1 -0
  507. package/dist/types/model/types.d.ts +66 -60
  508. package/dist/types/model/types.d.ts.map +1 -0
  509. package/dist/types/model/types.js +29 -37
  510. package/dist/types/model/types.js.map +1 -1
  511. package/dist/types/model/uid.d.cts +19 -0
  512. package/dist/types/model/uid.d.cts.map +1 -0
  513. package/dist/types/model/uid.d.ts +13 -7
  514. package/dist/types/model/uid.d.ts.map +1 -0
  515. package/dist/types/value/boolean.d.cts +10 -0
  516. package/dist/types/value/boolean.d.cts.map +1 -0
  517. package/dist/types/value/boolean.d.ts +5 -1
  518. package/dist/types/value/boolean.d.ts.map +1 -0
  519. package/dist/types/value/color.d.cts +15 -0
  520. package/dist/types/value/color.d.cts.map +1 -0
  521. package/dist/types/value/color.d.ts +8 -2
  522. package/dist/types/value/color.d.ts.map +1 -0
  523. package/dist/types/value/contentRelationship.d.cts +37 -0
  524. package/dist/types/value/contentRelationship.d.cts.map +1 -0
  525. package/dist/types/value/contentRelationship.d.ts +23 -17
  526. package/dist/types/value/contentRelationship.d.ts.map +1 -0
  527. package/dist/types/value/date.d.cts +15 -0
  528. package/dist/types/value/date.d.cts.map +1 -0
  529. package/dist/types/value/date.d.ts +8 -2
  530. package/dist/types/value/date.d.ts.map +1 -0
  531. package/dist/types/value/document.d.cts +120 -0
  532. package/dist/types/value/document.d.cts.map +1 -0
  533. package/dist/types/value/document.d.ts +90 -84
  534. package/dist/types/value/document.d.ts.map +1 -0
  535. package/dist/types/value/embed.cjs +14 -7
  536. package/dist/types/value/embed.cjs.map +1 -1
  537. package/dist/types/value/embed.d.cts +173 -0
  538. package/dist/types/value/embed.d.cts.map +1 -0
  539. package/dist/types/value/embed.d.ts +110 -105
  540. package/dist/types/value/embed.d.ts.map +1 -0
  541. package/dist/types/value/embed.js +14 -8
  542. package/dist/types/value/embed.js.map +1 -1
  543. package/dist/types/value/geoPoint.d.cts +18 -0
  544. package/dist/types/value/geoPoint.d.cts.map +1 -0
  545. package/dist/types/value/geoPoint.d.ts +10 -4
  546. package/dist/types/value/geoPoint.d.ts.map +1 -0
  547. package/dist/types/value/group.d.cts +19 -0
  548. package/dist/types/value/group.d.cts.map +1 -0
  549. package/dist/types/value/group.d.ts +9 -3
  550. package/dist/types/value/group.d.ts.map +1 -0
  551. package/dist/types/value/image.d.cts +53 -0
  552. package/dist/types/value/image.d.cts.map +1 -0
  553. package/dist/types/value/image.d.ts +31 -25
  554. package/dist/types/value/image.d.ts.map +1 -0
  555. package/dist/types/value/integration.d.cts +22 -0
  556. package/dist/types/value/integration.d.cts.map +1 -0
  557. package/dist/types/value/integration.d.ts +9 -3
  558. package/dist/types/value/integration.d.ts.map +1 -0
  559. package/dist/types/value/keyText.d.cts +15 -0
  560. package/dist/types/value/keyText.d.cts.map +1 -0
  561. package/dist/types/value/keyText.d.ts +8 -2
  562. package/dist/types/value/keyText.d.ts.map +1 -0
  563. package/dist/types/value/link.cjs +12 -7
  564. package/dist/types/value/link.cjs.map +1 -1
  565. package/dist/types/value/link.d.cts +74 -0
  566. package/dist/types/value/link.d.cts.map +1 -0
  567. package/dist/types/value/link.d.ts +27 -21
  568. package/dist/types/value/link.d.ts.map +1 -0
  569. package/dist/types/value/link.js +12 -8
  570. package/dist/types/value/link.js.map +1 -1
  571. package/dist/types/value/linkToMedia.d.cts +33 -0
  572. package/dist/types/value/linkToMedia.d.cts.map +1 -0
  573. package/dist/types/value/linkToMedia.d.ts +19 -14
  574. package/dist/types/value/linkToMedia.d.ts.map +1 -0
  575. package/dist/types/value/number.d.cts +15 -0
  576. package/dist/types/value/number.d.cts.map +1 -0
  577. package/dist/types/value/number.d.ts +8 -2
  578. package/dist/types/value/number.d.ts.map +1 -0
  579. package/dist/types/value/richText.cjs +29 -22
  580. package/dist/types/value/richText.cjs.map +1 -1
  581. package/dist/types/value/richText.d.cts +221 -0
  582. package/dist/types/value/richText.d.cts.map +1 -0
  583. package/dist/types/value/richText.d.ts +103 -97
  584. package/dist/types/value/richText.d.ts.map +1 -0
  585. package/dist/types/value/richText.js +29 -23
  586. package/dist/types/value/richText.js.map +1 -1
  587. package/dist/types/value/select.d.cts +16 -0
  588. package/dist/types/value/select.d.cts.map +1 -0
  589. package/dist/types/value/select.d.ts +8 -2
  590. package/dist/types/value/select.d.ts.map +1 -0
  591. package/dist/types/value/sharedSlice.d.cts +17 -0
  592. package/dist/types/value/sharedSlice.d.cts.map +1 -0
  593. package/dist/types/value/sharedSlice.d.ts +11 -5
  594. package/dist/types/value/sharedSlice.d.ts.map +1 -0
  595. package/dist/types/value/sharedSliceVariation.d.cts +16 -0
  596. package/dist/types/value/sharedSliceVariation.d.cts.map +1 -0
  597. package/dist/types/value/sharedSliceVariation.d.ts +12 -6
  598. package/dist/types/value/sharedSliceVariation.d.ts.map +1 -0
  599. package/dist/types/value/slice.d.cts +19 -0
  600. package/dist/types/value/slice.d.cts.map +1 -0
  601. package/dist/types/value/slice.d.ts +13 -7
  602. package/dist/types/value/slice.d.ts.map +1 -0
  603. package/dist/types/value/sliceZone.d.cts +18 -0
  604. package/dist/types/value/sliceZone.d.cts.map +1 -0
  605. package/dist/types/value/sliceZone.d.ts +10 -4
  606. package/dist/types/value/sliceZone.d.ts.map +1 -0
  607. package/dist/types/value/table.d.cts +97 -0
  608. package/dist/types/value/table.d.cts.map +1 -0
  609. package/dist/types/value/table.d.ts +65 -59
  610. package/dist/types/value/table.d.ts.map +1 -0
  611. package/dist/types/value/timestamp.d.cts +13 -0
  612. package/dist/types/value/timestamp.d.cts.map +1 -0
  613. package/dist/types/value/timestamp.d.ts +8 -3
  614. package/dist/types/value/timestamp.d.ts.map +1 -0
  615. package/dist/types/value/title.d.cts +16 -0
  616. package/dist/types/value/title.d.cts.map +1 -0
  617. package/dist/types/value/title.d.ts +11 -7
  618. package/dist/types/value/title.d.ts.map +1 -0
  619. package/dist/types/value/types.d.cts +61 -0
  620. package/dist/types/value/types.d.cts.map +1 -0
  621. package/dist/types/value/types.d.ts +31 -28
  622. package/dist/types/value/types.d.ts.map +1 -0
  623. package/dist/types/webhook/apiUpdate.d.cts +57 -0
  624. package/dist/types/webhook/apiUpdate.d.cts.map +1 -0
  625. package/dist/types/webhook/apiUpdate.d.ts +28 -23
  626. package/dist/types/webhook/apiUpdate.d.ts.map +1 -0
  627. package/dist/types/webhook/testTrigger.d.cts +15 -0
  628. package/dist/types/webhook/testTrigger.d.cts.map +1 -0
  629. package/dist/types/webhook/testTrigger.d.ts +9 -3
  630. package/dist/types/webhook/testTrigger.d.ts.map +1 -0
  631. package/dist/types/webhook/types.cjs +12 -5
  632. package/dist/types/webhook/types.cjs.map +1 -1
  633. package/dist/types/webhook/types.d.cts +23 -0
  634. package/dist/types/webhook/types.d.cts.map +1 -0
  635. package/dist/types/webhook/types.d.ts +16 -11
  636. package/dist/types/webhook/types.d.ts.map +1 -0
  637. package/dist/types/webhook/types.js +12 -6
  638. package/dist/types/webhook/types.js.map +1 -1
  639. package/package.json +16 -45
  640. package/src/Client.ts +682 -1028
  641. package/src/WriteClient.ts +23 -14
  642. package/src/buildQueryURL.ts +14 -20
  643. package/src/createClient.ts +1 -1
  644. package/src/errors.ts +94 -0
  645. package/src/filter.ts +1 -1
  646. package/src/getGraphQLEndpoint.ts +1 -1
  647. package/src/getRepositoryEndpoint.ts +1 -1
  648. package/src/getRepositoryName.ts +1 -1
  649. package/src/getToolbarSrc.ts +1 -1
  650. package/src/helpers/asHTML.ts +4 -4
  651. package/src/helpers/asImageWidthSrcSet.ts +1 -5
  652. package/src/helpers/asLink.ts +0 -3
  653. package/src/helpers/asLinkAttrs.ts +0 -4
  654. package/src/helpers/mapSliceZone.ts +5 -5
  655. package/src/index.ts +11 -9
  656. package/src/lib/isValue.ts +0 -6
  657. package/src/lib/pLimit.ts +1 -1
  658. package/src/lib/request.ts +3 -3
  659. package/src/lib/{throttledLog.ts → throttledWarn.ts} +3 -14
  660. package/src/lib/validateAssetMetadata.ts +1 -1
  661. package/src/types/migration/Document.ts +1 -1
  662. package/src/types/value/date.ts +1 -1
  663. package/src/types/value/document.ts +3 -3
  664. package/src/types/value/timestamp.ts +1 -5
  665. package/dist/errors/ForbiddenError.cjs +0 -7
  666. package/dist/errors/ForbiddenError.cjs.map +0 -1
  667. package/dist/errors/ForbiddenError.d.ts +0 -11
  668. package/dist/errors/ForbiddenError.js +0 -7
  669. package/dist/errors/ForbiddenError.js.map +0 -1
  670. package/dist/errors/InvalidDataError.cjs +0 -7
  671. package/dist/errors/InvalidDataError.cjs.map +0 -1
  672. package/dist/errors/InvalidDataError.d.ts +0 -3
  673. package/dist/errors/InvalidDataError.js +0 -7
  674. package/dist/errors/InvalidDataError.js.map +0 -1
  675. package/dist/errors/NotFoundError.cjs +0 -7
  676. package/dist/errors/NotFoundError.cjs.map +0 -1
  677. package/dist/errors/NotFoundError.d.ts +0 -3
  678. package/dist/errors/NotFoundError.js +0 -7
  679. package/dist/errors/NotFoundError.js.map +0 -1
  680. package/dist/errors/ParsingError.cjs +0 -7
  681. package/dist/errors/ParsingError.cjs.map +0 -1
  682. package/dist/errors/ParsingError.d.ts +0 -14
  683. package/dist/errors/ParsingError.js +0 -7
  684. package/dist/errors/ParsingError.js.map +0 -1
  685. package/dist/errors/PreviewTokenExpired.cjs +0 -7
  686. package/dist/errors/PreviewTokenExpired.cjs.map +0 -1
  687. package/dist/errors/PreviewTokenExpired.d.ts +0 -8
  688. package/dist/errors/PreviewTokenExpired.js +0 -7
  689. package/dist/errors/PreviewTokenExpired.js.map +0 -1
  690. package/dist/errors/PrismicError.cjs +0 -13
  691. package/dist/errors/PrismicError.cjs.map +0 -1
  692. package/dist/errors/PrismicError.d.ts +0 -5
  693. package/dist/errors/PrismicError.js +0 -13
  694. package/dist/errors/PrismicError.js.map +0 -1
  695. package/dist/errors/RefExpiredError.cjs +0 -7
  696. package/dist/errors/RefExpiredError.cjs.map +0 -1
  697. package/dist/errors/RefExpiredError.d.ts +0 -8
  698. package/dist/errors/RefExpiredError.js +0 -7
  699. package/dist/errors/RefExpiredError.js.map +0 -1
  700. package/dist/errors/RefNotFoundError.cjs +0 -7
  701. package/dist/errors/RefNotFoundError.cjs.map +0 -1
  702. package/dist/errors/RefNotFoundError.d.ts +0 -8
  703. package/dist/errors/RefNotFoundError.js +0 -7
  704. package/dist/errors/RefNotFoundError.js.map +0 -1
  705. package/dist/errors/RepositoryNotFoundError.cjs +0 -7
  706. package/dist/errors/RepositoryNotFoundError.cjs.map +0 -1
  707. package/dist/errors/RepositoryNotFoundError.d.ts +0 -3
  708. package/dist/errors/RepositoryNotFoundError.js +0 -7
  709. package/dist/errors/RepositoryNotFoundError.js.map +0 -1
  710. package/dist/lib/appendFilters.cjs +0 -11
  711. package/dist/lib/appendFilters.cjs.map +0 -1
  712. package/dist/lib/appendFilters.d.ts +0 -18
  713. package/dist/lib/appendFilters.js +0 -11
  714. package/dist/lib/appendFilters.js.map +0 -1
  715. package/dist/lib/castArray.cjs +0 -7
  716. package/dist/lib/castArray.cjs.map +0 -1
  717. package/dist/lib/castArray.d.ts +0 -12
  718. package/dist/lib/castArray.js +0 -7
  719. package/dist/lib/castArray.js.map +0 -1
  720. package/dist/lib/castThunk.cjs +0 -7
  721. package/dist/lib/castThunk.cjs.map +0 -1
  722. package/dist/lib/castThunk.d.ts +0 -11
  723. package/dist/lib/castThunk.js +0 -7
  724. package/dist/lib/castThunk.js.map +0 -1
  725. package/dist/lib/devMsg.d.ts +0 -16
  726. package/dist/lib/escapeHTML.d.ts +0 -1
  727. package/dist/lib/everyTagFilter.cjs +0 -9
  728. package/dist/lib/everyTagFilter.cjs.map +0 -1
  729. package/dist/lib/everyTagFilter.d.ts +0 -9
  730. package/dist/lib/everyTagFilter.js +0 -9
  731. package/dist/lib/everyTagFilter.js.map +0 -1
  732. package/dist/lib/findMasterRef.cjs +0 -8
  733. package/dist/lib/findMasterRef.cjs.map +0 -1
  734. package/dist/lib/findMasterRef.d.ts +0 -11
  735. package/dist/lib/findMasterRef.js +0 -8
  736. package/dist/lib/findMasterRef.js.map +0 -1
  737. package/dist/lib/findRef.cjs +0 -12
  738. package/dist/lib/findRef.cjs.map +0 -1
  739. package/dist/lib/findRef.d.ts +0 -14
  740. package/dist/lib/findRef.js +0 -12
  741. package/dist/lib/findRef.js.map +0 -1
  742. package/dist/lib/findRefByID.cjs +0 -8
  743. package/dist/lib/findRefByID.cjs.map +0 -1
  744. package/dist/lib/findRefByID.d.ts +0 -12
  745. package/dist/lib/findRefByID.js +0 -8
  746. package/dist/lib/findRefByID.js.map +0 -1
  747. package/dist/lib/findRefByLabel.cjs +0 -8
  748. package/dist/lib/findRefByLabel.cjs.map +0 -1
  749. package/dist/lib/findRefByLabel.d.ts +0 -12
  750. package/dist/lib/findRefByLabel.js +0 -8
  751. package/dist/lib/findRefByLabel.js.map +0 -1
  752. package/dist/lib/getOptionalLinkProperties.d.ts +0 -12
  753. package/dist/lib/getPreviewCookie.d.ts +0 -9
  754. package/dist/lib/isInternalURL.d.ts +0 -8
  755. package/dist/lib/isMigrationValue.d.ts +0 -71
  756. package/dist/lib/isValue.d.ts +0 -78
  757. package/dist/lib/minifyGraphQLQuery.cjs +0 -7
  758. package/dist/lib/minifyGraphQLQuery.cjs.map +0 -1
  759. package/dist/lib/minifyGraphQLQuery.d.ts +0 -8
  760. package/dist/lib/minifyGraphQLQuery.js +0 -7
  761. package/dist/lib/minifyGraphQLQuery.js.map +0 -1
  762. package/dist/lib/pLimit.d.ts +0 -22
  763. package/dist/lib/resolveMigrationDocumentData.d.ts +0 -54
  764. package/dist/lib/serializerHelpers.d.ts +0 -9
  765. package/dist/lib/someTagsFilter.cjs +0 -9
  766. package/dist/lib/someTagsFilter.cjs.map +0 -1
  767. package/dist/lib/someTagsFilter.d.ts +0 -9
  768. package/dist/lib/someTagsFilter.js +0 -9
  769. package/dist/lib/someTagsFilter.js.map +0 -1
  770. package/dist/lib/throttledLog.cjs +0 -17
  771. package/dist/lib/throttledLog.cjs.map +0 -1
  772. package/dist/lib/throttledLog.d.ts +0 -15
  773. package/dist/lib/throttledLog.js +0 -17
  774. package/dist/lib/throttledLog.js.map +0 -1
  775. package/dist/lib/typeFilter.cjs +0 -8
  776. package/dist/lib/typeFilter.cjs.map +0 -1
  777. package/dist/lib/typeFilter.d.ts +0 -8
  778. package/dist/lib/typeFilter.js +0 -8
  779. package/dist/lib/typeFilter.js.map +0 -1
  780. package/dist/lib/validateAssetMetadata.d.ts +0 -10
  781. package/dist/package.json.cjs +0 -7
  782. package/dist/package.json.cjs.map +0 -1
  783. package/dist/package.json.js +0 -7
  784. package/dist/package.json.js.map +0 -1
  785. package/dist/richtext/index.d.ts +0 -7
  786. package/dist/richtext.cjs.map +0 -1
  787. package/dist/richtext.js.map +0 -1
  788. package/dist/types/api/migration/document.d.ts +0 -60
  789. package/dist/types/migration/Link.d.ts +0 -19
  790. package/src/errors/ForbiddenError.ts +0 -16
  791. package/src/errors/InvalidDataError.ts +0 -5
  792. package/src/errors/NotFoundError.ts +0 -5
  793. package/src/errors/ParsingError.ts +0 -16
  794. package/src/errors/PreviewTokenExpired.ts +0 -12
  795. package/src/errors/PrismicError.ts +0 -15
  796. package/src/errors/RefExpiredError.ts +0 -14
  797. package/src/errors/RefNotFoundError.ts +0 -14
  798. package/src/errors/RepositoryNotFoundError.ts +0 -5
  799. package/src/lib/appendFilters.ts +0 -26
  800. package/src/lib/castArray.ts +0 -14
  801. package/src/lib/castThunk.ts +0 -13
  802. package/src/lib/everyTagFilter.ts +0 -15
  803. package/src/lib/findMasterRef.ts +0 -16
  804. package/src/lib/findRef.ts +0 -25
  805. package/src/lib/findRefByID.ts +0 -17
  806. package/src/lib/findRefByLabel.ts +0 -17
  807. package/src/lib/minifyGraphQLQuery.ts +0 -13
  808. package/src/lib/someTagsFilter.ts +0 -15
  809. package/src/lib/typeFilter.ts +0 -12
package/dist/index.d.ts CHANGED
@@ -1,82 +1,133 @@
1
- import type { CustomTypeModelIntegrationField } from "./types/model/integration.js";
2
- import type { IntegrationField } from "./types/value/integration.js";
3
- import { RichTextNodeType } from "./types/value/richText.js";
4
- import type { HTMLRichTextFunctionSerializer, HTMLRichTextMapSerializer } from "./helpers/asHTML.js";
5
- import { mapSliceZone } from "./helpers/mapSliceZone.js";
1
+ import { CustomTypeModelBooleanField } from "./types/model/boolean.js";
2
+ import { CustomTypeModelColorField } from "./types/model/color.js";
3
+ import { CustomTypeModelLinkField, CustomTypeModelLinkSelectType } from "./types/model/link.js";
4
+ import { CustomTypeModelContentRelationshipField, CustomTypeModelFetchContentRelationshipLevel1, CustomTypeModelFetchCustomTypeLevel1, CustomTypeModelFetchCustomTypeLevel2, CustomTypeModelFetchGroupLevel1, CustomTypeModelFetchGroupLevel2 } from "./types/model/contentRelationship.js";
5
+ import { CustomTypeModelDateField } from "./types/model/date.js";
6
+ import { CustomTypeModelEmbedField } from "./types/model/embed.js";
7
+ import { CustomTypeModelGeoPointField } from "./types/model/geoPoint.js";
8
+ import { CustomTypeModelGroupField, CustomTypeModelNestedGroupField } from "./types/model/group.js";
9
+ import { CustomTypeModelImageConstraint, CustomTypeModelImageField, CustomTypeModelImageThumbnail } from "./types/model/image.js";
10
+ import { CustomTypeModelKeyTextField } from "./types/model/keyText.js";
11
+ import { CustomTypeModelLinkToMediaField } from "./types/model/linkToMedia.js";
12
+ import { CustomTypeModelNumberField } from "./types/model/number.js";
13
+ import { CustomTypeModelRangeField } from "./types/model/range.js";
14
+ import { CustomTypeModelRichTextField, CustomTypeModelRichTextMultiField, CustomTypeModelRichTextSingleField } from "./types/model/richText.js";
15
+ import { CustomTypeModelSelectField } from "./types/model/select.js";
16
+ import { CustomTypeModelSeparatorField } from "./types/model/separator.js";
17
+ import { CustomTypeModelLegacySlice, CustomTypeModelSlice, CustomTypeModelSliceDisplay } from "./types/model/slice.js";
18
+ import { CustomTypeModelSharedSlice, CustomTypeModelSliceLabel, CustomTypeModelSliceType, CustomTypeModelSliceZoneField } from "./types/model/sliceZone.js";
19
+ import { CustomTypeModelTableField } from "./types/model/table.js";
20
+ import { CustomTypeModelTimestampField } from "./types/model/timestamp.js";
21
+ import { CustomTypeModelTitleField } from "./types/model/title.js";
22
+ import { CustomTypeModelUIDField } from "./types/model/uid.js";
23
+ import { CustomTypeModelField, CustomTypeModelFieldForGroup, CustomTypeModelFieldForNestedGroup, CustomTypeModelFieldForSlicePrimary, CustomTypeModelFieldType } from "./types/model/types.js";
24
+ import { CustomTypeModelIntegrationField } from "./types/model/integration.js";
25
+ import { BooleanField } from "./types/value/boolean.js";
26
+ import { ColorField } from "./types/value/color.js";
27
+ import { GroupField, NestedGroupField } from "./types/value/group.js";
28
+ import { SharedSliceVariation } from "./types/value/sharedSliceVariation.js";
29
+ import { SharedSlice } from "./types/value/sharedSlice.js";
30
+ import { Slice } from "./types/value/slice.js";
31
+ import { SliceZone } from "./types/value/sliceZone.js";
32
+ import { ContentRelationshipField, FilledContentRelationshipField } from "./types/value/contentRelationship.js";
33
+ import { DateField } from "./types/value/date.js";
34
+ import { AnyOEmbed, EmbedField, LinkOEmbed, OEmbedExtra, OEmbedType, PhotoOEmbed, RichOEmbed, VideoOEmbed } from "./types/value/embed.js";
35
+ import { GeoPointField } from "./types/value/geoPoint.js";
36
+ import { EmptyImageFieldImage, FilledImageFieldImage, ImageField, ImageFieldImage } from "./types/value/image.js";
37
+ import { KeyTextField } from "./types/value/keyText.js";
38
+ import { FilledLinkToMediaField, LinkToMediaField } from "./types/value/linkToMedia.js";
39
+ import { EmptyLinkField, FilledLinkToWebField, LinkField, LinkType } from "./types/value/link.js";
40
+ import { NumberField } from "./types/value/number.js";
41
+ import { RTAnyNode, RTBlockNode, RTEmNode, RTEmbedNode, RTHeading1Node, RTHeading2Node, RTHeading3Node, RTHeading4Node, RTHeading5Node, RTHeading6Node, RTImageNode, RTInlineNode, RTLabelNode, RTLinkNode, RTListItemNode, RTListNode, RTNode, RTOListItemNode, RTOListNode, RTParagraphNode, RTPreformattedNode, RTSpanNode, RTSpanNodeBase, RTStrongNode, RTTextNode, RTTextNodeBase, RichTextField, RichTextNodeType, RichTextNodeTypes } from "./types/value/richText.js";
42
+ import { SelectField } from "./types/value/select.js";
43
+ import { TableField, TableFieldBody, TableFieldBodyRow, TableFieldDataCell, TableFieldHead, TableFieldHeadRow, TableFieldHeaderCell } from "./types/value/table.js";
44
+ import { TimestampField } from "./types/value/timestamp.js";
45
+ import { TitleField } from "./types/value/title.js";
46
+ import { AnyRegularField, AnySlicePrimaryField, FieldState, Repeatable } from "./types/value/types.js";
47
+ import { IntegrationField, IntegrationFieldData } from "./types/value/integration.js";
48
+ import { AlternateLanguage, PrismicDocument, PrismicDocumentHeader, PrismicDocumentWithUID, PrismicDocumentWithoutUID } from "./types/value/document.js";
49
+ import { LinkResolverFunction, asLink } from "./helpers/asLink.js";
50
+ import { HTMLRichTextFunctionSerializer, HTMLRichTextMapSerializer, HTMLRichTextSerializer, asHTML } from "./helpers/asHTML.js";
51
+ import { SliceMapper, mapSliceZone } from "./helpers/mapSliceZone.js";
6
52
  import { filter } from "./filter.js";
7
- export { createClient } from "./createClient.js";
8
- export { Client } from "./Client.js";
9
- export { createWriteClient } from "./createWriteClient.js";
10
- export { WriteClient } from "./WriteClient.js";
11
- export { createMigration } from "./createMigration.js";
12
- export { Migration } from "./Migration.js";
13
- export { getRepositoryEndpoint } from "./getRepositoryEndpoint.js";
14
- export { getRepositoryName } from "./getRepositoryName.js";
15
- export { getGraphQLEndpoint } from "./getGraphQLEndpoint.js";
16
- export { isRepositoryName } from "./isRepositoryName.js";
17
- export { isRepositoryEndpoint } from "./isRepositoryEndpoint.js";
18
- export { buildQueryURL } from "./buildQueryURL.js";
19
- export { getToolbarSrc } from "./getToolbarSrc.js";
53
+ import { AbortSignalLike, FetchLike, RequestInitLike, ResponseLike } from "./lib/request.js";
54
+ import { Query } from "./types/api/query.js";
55
+ import { Ref } from "./types/api/ref.js";
56
+ import { Form, FormField, Language, Repository } from "./types/api/repository.js";
57
+ import { BuildQueryURLArgs, Ordering, QueryParams, Route, buildQueryURL } from "./buildQueryURL.js";
58
+ import { Client, ClientConfig, HttpRequestLike } from "./Client.js";
59
+ import { CreateClient, createClient } from "./createClient.js";
60
+ import { MigrationContentRelationship } from "./types/migration/ContentRelationship.js";
61
+ import { ExistingPrismicDocument, InjectMigrationSpecificTypes, PendingPrismicDocument, PrismicMigrationDocument } from "./types/migration/Document.js";
62
+ import { MigrationImage, MigrationLinkToMedia, MigrationRTImageNode, PrismicMigrationAsset } from "./types/migration/Asset.js";
63
+ import { Migration } from "./Migration.js";
64
+ import { MigrateReporterEvents, WriteClient, WriteClientConfig } from "./WriteClient.js";
65
+ import { CreateWriteClient, createWriteClient } from "./createWriteClient.js";
66
+ import { CreateMigration, createMigration } from "./createMigration.js";
67
+ import { getRepositoryEndpoint } from "./getRepositoryEndpoint.js";
68
+ import { getRepositoryName } from "./getRepositoryName.js";
69
+ import { getGraphQLEndpoint } from "./getGraphQLEndpoint.js";
70
+ import { isRepositoryName } from "./isRepositoryName.js";
71
+ import { isRepositoryEndpoint } from "./isRepositoryEndpoint.js";
72
+ import { getToolbarSrc } from "./getToolbarSrc.js";
73
+ import { cookie_d_exports } from "./cookie.js";
74
+ import { asDate } from "./helpers/asDate.js";
75
+ import { AsLinkAttrsConfig, asLinkAttrs } from "./helpers/asLinkAttrs.js";
76
+ import { asText } from "./helpers/asText.js";
77
+ import { asImageSrc } from "./helpers/asImageSrc.js";
78
+ import { asImageWidthSrcSet } from "./helpers/asImageWidthSrcSet.js";
79
+ import { asImagePixelDensitySrcSet } from "./helpers/asImagePixelDensitySrcSet.js";
80
+ import { isFilled_d_exports } from "./helpers/isFilled.js";
81
+ import { documentToLinkField } from "./helpers/documentToLinkField.js";
82
+ import { ForbiddenError, InvalidDataError, NotFoundError, ParsingError, PreviewTokenExpiredError, PrismicError, RefExpiredError, RefNotFoundError, RepositoryNotFoundError } from "./errors.js";
83
+ import { CustomTypeModel, CustomTypeModelDefinition, CustomTypeModelTab } from "./types/model/customType.js";
84
+ import { SharedSliceModelVariation } from "./types/model/sharedSliceVariation.js";
85
+ import { SharedSliceModel } from "./types/model/sharedSlice.js";
86
+ import { Release } from "./types/api/release.js";
87
+ import { Tags } from "./types/api/tags.js";
88
+ import { IntegrationAPIItem, IntegrationAPIResults } from "./types/api/integration.js";
89
+ import { WebhookBodyAPIUpdate } from "./types/webhook/apiUpdate.js";
90
+ import { WebhookBodyTestTrigger } from "./types/webhook/testTrigger.js";
91
+ import { WebhookBody, WebhookType } from "./types/webhook/types.js";
92
+
93
+ //#region src/index.d.ts
20
94
  /**
21
95
  * @deprecated Renamed to `filter`
22
96
  */
23
97
  declare const predicate: {
24
- at: (path: string, value: string | number | boolean | string[] | Date) => string;
25
- not: (path: string, value: string | number | boolean | string[] | Date) => string;
26
- any: (path: string, values: (string | number | boolean | Date)[]) => string;
27
- in: (path: string, values: string[]) => string;
28
- fulltext: (path: string, searchTerms: string) => string;
29
- has: (path: string) => string;
30
- missing: (path: string) => string;
31
- similar: (id: string, value: number) => string;
32
- geopointNear: (path: string, latitude: number, longitude: number, radius: number) => string;
33
- numberLessThan: (path: string, value: number) => string;
34
- numberGreaterThan: (path: string, value: number) => string;
35
- numberInRange: (path: string, lowerLimit: number, upperLimit: number) => string;
36
- dateAfter: (path: string, date: string | number | Date) => string;
37
- dateBefore: (path: string, date: string | number | Date) => string;
38
- dateBetween: (path: string, startDate: string | number | Date, endDate: string | number | Date) => string;
39
- dateDayOfMonth: (path: string, day: number) => string;
40
- dateDayOfMonthAfter: (path: string, day: number) => string;
41
- dateDayOfMonthBefore: (path: string, day: number) => string;
42
- dateDayOfWeek: (path: string, day: string | number) => string;
43
- dateDayOfWeekAfter: (path: string, day: string | number) => string;
44
- dateDayOfWeekBefore: (path: string, day: string | number) => string;
45
- dateMonth: (path: string, month: string | number) => string;
46
- dateMonthAfter: (path: string, month: string | number) => string;
47
- dateMonthBefore: (path: string, month: string | number) => string;
48
- dateYear: (path: string, year: number) => string;
49
- dateHour: (path: string, hour: number) => string;
50
- dateHourAfter: (path: string, hour: number) => string;
51
- dateHourBefore: (path: string, hour: number) => string;
98
+ at: (path: string, value: string | number | boolean | Date | string[]) => string;
99
+ not: (path: string, value: string | number | boolean | Date | string[]) => string;
100
+ any: (path: string, values: (string | number | boolean | Date)[]) => string;
101
+ in: (path: string, values: string[]) => string;
102
+ fulltext: (path: string, searchTerms: string) => string;
103
+ has: (path: string) => string;
104
+ missing: (path: string) => string;
105
+ similar: (id: string, value: number) => string;
106
+ geopointNear: (path: string, latitude: number, longitude: number, radius: number) => string;
107
+ numberLessThan: (path: string, value: number) => string;
108
+ numberGreaterThan: (path: string, value: number) => string;
109
+ numberInRange: (path: string, lowerLimit: number, upperLimit: number) => string;
110
+ dateAfter: (path: string, date: string | number | Date) => string;
111
+ dateBefore: (path: string, date: string | number | Date) => string;
112
+ dateBetween: (path: string, startDate: string | number | Date, endDate: string | number | Date) => string;
113
+ dateDayOfMonth: (path: string, day: number) => string;
114
+ dateDayOfMonthAfter: (path: string, day: number) => string;
115
+ dateDayOfMonthBefore: (path: string, day: number) => string;
116
+ dateDayOfWeek: (path: string, day: string | number) => string;
117
+ dateDayOfWeekAfter: (path: string, day: string | number) => string;
118
+ dateDayOfWeekBefore: (path: string, day: string | number) => string;
119
+ dateMonth: (path: string, month: string | number) => string;
120
+ dateMonthAfter: (path: string, month: string | number) => string;
121
+ dateMonthBefore: (path: string, month: string | number) => string;
122
+ dateYear: (path: string, year: number) => string;
123
+ dateHour: (path: string, hour: number) => string;
124
+ dateHourAfter: (path: string, hour: number) => string;
125
+ dateHourBefore: (path: string, hour: number) => string;
52
126
  };
53
- export { filter, predicate };
54
- export * as cookie from "./cookie.js";
55
- export type { CreateClient } from "./createClient.js";
56
- export type { ClientConfig, HttpRequestLike } from "./Client.js";
57
- export type { CreateWriteClient } from "./createWriteClient.js";
58
- export type { WriteClientConfig, MigrateReporterEvents } from "./WriteClient.js";
59
- export type { BuildQueryURLArgs, Ordering, QueryParams, Route, } from "./buildQueryURL.js";
60
- export type { CreateMigration } from "./createMigration.js";
61
- export type { AbortSignalLike, FetchLike, RequestInitLike, ResponseLike, } from "./lib/request.js";
62
- export { asDate } from "./helpers/asDate.js";
63
- export { asLink } from "./helpers/asLink.js";
64
- export { asLinkAttrs } from "./helpers/asLinkAttrs.js";
65
- export { asText } from "./helpers/asText.js";
66
- export { asHTML } from "./helpers/asHTML.js";
67
- export { asImageSrc } from "./helpers/asImageSrc.js";
68
- export { asImageWidthSrcSet } from "./helpers/asImageWidthSrcSet.js";
69
- export { asImagePixelDensitySrcSet } from "./helpers/asImagePixelDensitySrcSet.js";
70
- export * as isFilled from "./helpers/isFilled.js";
71
127
  /**
72
128
  * @deprecated Renamed to `mapSliceZone`
73
129
  */
74
130
  declare const unstable_mapSliceZone: typeof mapSliceZone;
75
- export { mapSliceZone, unstable_mapSliceZone };
76
- export { documentToLinkField } from "./helpers/documentToLinkField.js";
77
- export type { LinkResolverFunction } from "./helpers/asLink.js";
78
- export type { AsLinkAttrsConfig } from "./helpers/asLinkAttrs.js";
79
- export type { SliceMapper } from "./helpers/mapSliceZone.js";
80
131
  /**
81
132
  * @deprecated Renamed to `HTMLRichTextMapSerializer`
82
133
  */
@@ -85,120 +136,38 @@ type HTMLMapSerializer = HTMLRichTextMapSerializer;
85
136
  * @deprecated Renamed to `HTMLRichTextFunctionSerializer`
86
137
  */
87
138
  type HTMLFunctionSerializer = HTMLRichTextFunctionSerializer;
88
- export type { HTMLRichTextMapSerializer, HTMLRichTextFunctionSerializer, HTMLMapSerializer, HTMLFunctionSerializer, };
89
- export type { HTMLRichTextSerializer } from "./helpers/asHTML.js";
90
- export { PrismicError } from "./errors/PrismicError.js";
91
- export { ForbiddenError } from "./errors/ForbiddenError.js";
92
- export { InvalidDataError } from "./errors/InvalidDataError.js";
93
- export { NotFoundError } from "./errors/NotFoundError.js";
94
- export { RefNotFoundError } from "./errors/RefNotFoundError.js";
95
- export { RefExpiredError } from "./errors/RefExpiredError.js";
96
- export { PreviewTokenExpiredError } from "./errors/PreviewTokenExpired.js";
97
- export { ParsingError } from "./errors/ParsingError.js";
98
- export { RepositoryNotFoundError } from "./errors/RepositoryNotFoundError.js";
99
139
  /**
100
140
  * @deprecated Use {@link RichTextNodeType} instead.
101
141
  */
102
142
  declare const Element: {
103
- readonly heading1: "heading1";
104
- readonly heading2: "heading2";
105
- readonly heading3: "heading3";
106
- readonly heading4: "heading4";
107
- readonly heading5: "heading5";
108
- readonly heading6: "heading6";
109
- readonly paragraph: "paragraph";
110
- readonly preformatted: "preformatted";
111
- readonly strong: "strong";
112
- readonly em: "em";
113
- readonly listItem: "list-item";
114
- readonly oListItem: "o-list-item";
115
- readonly list: "group-list-item";
116
- readonly oList: "group-o-list-item";
117
- readonly image: "image";
118
- readonly embed: "embed";
119
- readonly hyperlink: "hyperlink";
120
- readonly label: "label";
121
- readonly span: "span";
143
+ readonly heading1: "heading1";
144
+ readonly heading2: "heading2";
145
+ readonly heading3: "heading3";
146
+ readonly heading4: "heading4";
147
+ readonly heading5: "heading5";
148
+ readonly heading6: "heading6";
149
+ readonly paragraph: "paragraph";
150
+ readonly preformatted: "preformatted";
151
+ readonly strong: "strong";
152
+ readonly em: "em";
153
+ readonly listItem: "list-item";
154
+ readonly oListItem: "o-list-item";
155
+ readonly list: "group-list-item";
156
+ readonly oList: "group-o-list-item";
157
+ readonly image: "image";
158
+ readonly embed: "embed";
159
+ readonly hyperlink: "hyperlink";
160
+ readonly label: "label";
161
+ readonly span: "span";
122
162
  };
123
- export { RichTextNodeType, Element };
124
- export { LinkType } from "./types/value/link.js";
125
- export { OEmbedType } from "./types/value/embed.js";
126
- export type { PrismicDocument, PrismicDocumentWithUID, PrismicDocumentWithoutUID, PrismicDocumentHeader, AlternateLanguage, } from "./types/value/document.js";
127
- export type { RichTextField, RTTextNodeBase, RTHeading1Node, RTHeading2Node, RTHeading3Node, RTHeading4Node, RTHeading5Node, RTHeading6Node, RTParagraphNode, RTPreformattedNode, RTListItemNode, RTOListItemNode, RTSpanNodeBase, RTStrongNode, RTEmNode, RTLabelNode, RTImageNode, RTEmbedNode, RTLinkNode, RTListNode, RTOListNode, RTSpanNode, RTNode, RTTextNode, RTBlockNode, RTInlineNode, RTAnyNode, RichTextNodeTypes, } from "./types/value/richText.js";
128
- export type { TitleField } from "./types/value/title.js";
129
- export type { ImageField, ImageFieldImage, FilledImageFieldImage, EmptyImageFieldImage, } from "./types/value/image.js";
130
- export type { EmptyLinkField, LinkField, FilledLinkToWebField, } from "./types/value/link.js";
131
- export type { ContentRelationshipField, FilledContentRelationshipField, } from "./types/value/contentRelationship.js";
132
- export type { LinkToMediaField, FilledLinkToMediaField, } from "./types/value/linkToMedia.js";
133
- export type { OEmbedExtra, PhotoOEmbed, VideoOEmbed, LinkOEmbed, RichOEmbed, AnyOEmbed, EmbedField, } from "./types/value/embed.js";
134
- export type { TableField, TableFieldHead, TableFieldHeadRow, TableFieldBody, TableFieldBodyRow, TableFieldHeaderCell, TableFieldDataCell, } from "./types/value/table.js";
135
- export type { BooleanField } from "./types/value/boolean.js";
136
- export type { ColorField } from "./types/value/color.js";
137
- export type { DateField } from "./types/value/date.js";
138
- export type { KeyTextField } from "./types/value/keyText.js";
139
- export type { NumberField } from "./types/value/number.js";
140
- export type { SelectField } from "./types/value/select.js";
141
- export type { TimestampField } from "./types/value/timestamp.js";
142
- export type { GeoPointField } from "./types/value/geoPoint.js";
143
163
  /**
144
164
  * @deprecated Renamed to `IntegrationField`
145
165
  */
146
166
  type IntegrationFields = IntegrationField;
147
- export type { IntegrationField, IntegrationFields };
148
- export type { IntegrationFieldData } from "./types/value/integration.js";
149
- export type { GroupField, NestedGroupField } from "./types/value/group.js";
150
- export type { SliceZone } from "./types/value/sliceZone.js";
151
- export type { Slice } from "./types/value/slice.js";
152
- export type { SharedSlice } from "./types/value/sharedSlice.js";
153
- export type { SharedSliceVariation } from "./types/value/sharedSliceVariation.js";
154
- export type { FieldState, AnyRegularField, AnySlicePrimaryField, Repeatable, } from "./types/value/types.js";
155
- export { CustomTypeModelFieldType } from "./types/model/types.js";
156
- export { CustomTypeModelLinkSelectType } from "./types/model/link.js";
157
- export { CustomTypeModelSliceType } from "./types/model/sliceZone.js";
158
- export { CustomTypeModelSliceDisplay } from "./types/model/slice.js";
159
- export type { CustomTypeModel, CustomTypeModelDefinition, CustomTypeModelTab, } from "./types/model/customType.js";
160
- export type { CustomTypeModelRichTextField, CustomTypeModelRichTextMultiField, CustomTypeModelRichTextSingleField, } from "./types/model/richText.js";
161
- export type { CustomTypeModelTitleField } from "./types/model/title.js";
162
- export type { CustomTypeModelImageField, CustomTypeModelImageConstraint, CustomTypeModelImageThumbnail, } from "./types/model/image.js";
163
- export type { CustomTypeModelFetchCustomTypeLevel1, CustomTypeModelFetchContentRelationshipLevel1, CustomTypeModelFetchGroupLevel1, CustomTypeModelFetchCustomTypeLevel2, CustomTypeModelFetchGroupLevel2, CustomTypeModelContentRelationshipField, } from "./types/model/contentRelationship.js";
164
- export type { CustomTypeModelLinkField } from "./types/model/link.js";
165
- export type { CustomTypeModelLinkToMediaField } from "./types/model/linkToMedia.js";
166
- export type { CustomTypeModelEmbedField } from "./types/model/embed.js";
167
- export type { CustomTypeModelBooleanField } from "./types/model/boolean.js";
168
- export type { CustomTypeModelColorField } from "./types/model/color.js";
169
- export type { CustomTypeModelDateField } from "./types/model/date.js";
170
- export type { CustomTypeModelKeyTextField } from "./types/model/keyText.js";
171
- export type { CustomTypeModelNumberField } from "./types/model/number.js";
172
- export type { CustomTypeModelSelectField } from "./types/model/select.js";
173
- export type { CustomTypeModelTimestampField } from "./types/model/timestamp.js";
174
- export type { CustomTypeModelGeoPointField } from "./types/model/geoPoint.js";
175
- export type { CustomTypeModelTableField } from "./types/model/table.js";
176
167
  /**
177
168
  * @deprecated Renamed to `CustomTypeModelIntegrationField`.
178
169
  */
179
170
  type CustomTypeModelIntegrationFieldsField = CustomTypeModelIntegrationField;
180
- export { CustomTypeModelIntegrationField, CustomTypeModelIntegrationFieldsField, };
181
- export type { CustomTypeModelGroupField, CustomTypeModelNestedGroupField, } from "./types/model/group.js";
182
- export type { CustomTypeModelSliceZoneField, CustomTypeModelSliceLabel, CustomTypeModelSharedSlice, } from "./types/model/sliceZone.js";
183
- export type { CustomTypeModelSlice, CustomTypeModelLegacySlice, } from "./types/model/slice.js";
184
- export type { SharedSliceModel } from "./types/model/sharedSlice.js";
185
- export type { SharedSliceModelVariation } from "./types/model/sharedSliceVariation.js";
186
- export type { CustomTypeModelUIDField } from "./types/model/uid.js";
187
- export type { CustomTypeModelRangeField } from "./types/model/range.js";
188
- export type { CustomTypeModelSeparatorField } from "./types/model/separator.js";
189
- export type { CustomTypeModelField, CustomTypeModelFieldForGroup, CustomTypeModelFieldForNestedGroup, CustomTypeModelFieldForSlicePrimary, } from "./types/model/types.js";
190
- export { PrismicMigrationDocument } from "./types/migration/Document.js";
191
- export type { PendingPrismicDocument, ExistingPrismicDocument, InjectMigrationSpecificTypes, } from "./types/migration/Document.js";
192
- export { PrismicMigrationAsset } from "./types/migration/Asset.js";
193
- export type { MigrationImage, MigrationLinkToMedia, MigrationRTImageNode, } from "./types/migration/Asset.js";
194
- export type { MigrationContentRelationship } from "./types/migration/ContentRelationship.js";
195
- export type { Query } from "./types/api/query.js";
196
- export type { Ref } from "./types/api/ref.js";
197
- export type { Release } from "./types/api/release.js";
198
- export type { Repository, Language, Form, FormField, } from "./types/api/repository.js";
199
- export type { Tags } from "./types/api/tags.js";
200
- export type { IntegrationAPIItem, IntegrationAPIResults, } from "./types/api/integration.js";
201
- export { WebhookType } from "./types/webhook/types.js";
202
- export type { WebhookBody } from "./types/webhook/types.js";
203
- export type { WebhookBodyAPIUpdate } from "./types/webhook/apiUpdate.js";
204
- export type { WebhookBodyTestTrigger } from "./types/webhook/testTrigger.js";
171
+ //#endregion
172
+ export { type AbortSignalLike, type AlternateLanguage, type AnyOEmbed, type AnyRegularField, type AnySlicePrimaryField, type AsLinkAttrsConfig, type BooleanField, type BuildQueryURLArgs, Client, type ClientConfig, type ColorField, type ContentRelationshipField, type CreateClient, type CreateMigration, type CreateWriteClient, type CustomTypeModel, type CustomTypeModelBooleanField, type CustomTypeModelColorField, type CustomTypeModelContentRelationshipField, type CustomTypeModelDateField, type CustomTypeModelDefinition, type CustomTypeModelEmbedField, type CustomTypeModelFetchContentRelationshipLevel1, type CustomTypeModelFetchCustomTypeLevel1, type CustomTypeModelFetchCustomTypeLevel2, type CustomTypeModelFetchGroupLevel1, type CustomTypeModelFetchGroupLevel2, type CustomTypeModelField, type CustomTypeModelFieldForGroup, type CustomTypeModelFieldForNestedGroup, type CustomTypeModelFieldForSlicePrimary, CustomTypeModelFieldType, type CustomTypeModelGeoPointField, type CustomTypeModelGroupField, type CustomTypeModelImageConstraint, type CustomTypeModelImageField, type CustomTypeModelImageThumbnail, CustomTypeModelIntegrationField, CustomTypeModelIntegrationFieldsField, type CustomTypeModelKeyTextField, type CustomTypeModelLegacySlice, type CustomTypeModelLinkField, CustomTypeModelLinkSelectType, type CustomTypeModelLinkToMediaField, type CustomTypeModelNestedGroupField, type CustomTypeModelNumberField, type CustomTypeModelRangeField, type CustomTypeModelRichTextField, type CustomTypeModelRichTextMultiField, type CustomTypeModelRichTextSingleField, type CustomTypeModelSelectField, type CustomTypeModelSeparatorField, type CustomTypeModelSharedSlice, type CustomTypeModelSlice, CustomTypeModelSliceDisplay, type CustomTypeModelSliceLabel, CustomTypeModelSliceType, type CustomTypeModelSliceZoneField, type CustomTypeModelTab, type CustomTypeModelTableField, type CustomTypeModelTimestampField, type CustomTypeModelTitleField, type CustomTypeModelUIDField, type DateField, Element, type EmbedField, type EmptyImageFieldImage, type EmptyLinkField, type ExistingPrismicDocument, type FetchLike, type FieldState, type FilledContentRelationshipField, type FilledImageFieldImage, type FilledLinkToMediaField, type FilledLinkToWebField, ForbiddenError, type Form, type FormField, type GeoPointField, type GroupField, type HTMLFunctionSerializer, type HTMLMapSerializer, type HTMLRichTextFunctionSerializer, type HTMLRichTextMapSerializer, type HTMLRichTextSerializer, type HttpRequestLike, type ImageField, type ImageFieldImage, type InjectMigrationSpecificTypes, type IntegrationAPIItem, type IntegrationAPIResults, type IntegrationField, type IntegrationFieldData, type IntegrationFields, InvalidDataError, type KeyTextField, type Language, type LinkField, type LinkOEmbed, type LinkResolverFunction, type LinkToMediaField, LinkType, type MigrateReporterEvents, Migration, type MigrationContentRelationship, type MigrationImage, type MigrationLinkToMedia, type MigrationRTImageNode, type NestedGroupField, NotFoundError, type NumberField, type OEmbedExtra, OEmbedType, type Ordering, ParsingError, type PendingPrismicDocument, type PhotoOEmbed, PreviewTokenExpiredError, type PrismicDocument, type PrismicDocumentHeader, type PrismicDocumentWithUID, type PrismicDocumentWithoutUID, PrismicError, PrismicMigrationAsset, PrismicMigrationDocument, type Query, type QueryParams, type RTAnyNode, type RTBlockNode, type RTEmNode, type RTEmbedNode, type RTHeading1Node, type RTHeading2Node, type RTHeading3Node, type RTHeading4Node, type RTHeading5Node, type RTHeading6Node, type RTImageNode, type RTInlineNode, type RTLabelNode, type RTLinkNode, type RTListItemNode, type RTListNode, type RTNode, type RTOListItemNode, type RTOListNode, type RTParagraphNode, type RTPreformattedNode, type RTSpanNode, type RTSpanNodeBase, type RTStrongNode, type RTTextNode, type RTTextNodeBase, type Ref, RefExpiredError, RefNotFoundError, type Release, type Repeatable, type Repository, RepositoryNotFoundError, type RequestInitLike, type ResponseLike, type RichOEmbed, type RichTextField, RichTextNodeType, type RichTextNodeTypes, type Route, type SelectField, type SharedSlice, type SharedSliceModel, type SharedSliceModelVariation, type SharedSliceVariation, type Slice, type SliceMapper, type SliceZone, type TableField, type TableFieldBody, type TableFieldBodyRow, type TableFieldDataCell, type TableFieldHead, type TableFieldHeadRow, type TableFieldHeaderCell, type Tags, type TimestampField, type TitleField, type VideoOEmbed, type WebhookBody, type WebhookBodyAPIUpdate, type WebhookBodyTestTrigger, WebhookType, WriteClient, type WriteClientConfig, asDate, asHTML, asImagePixelDensitySrcSet, asImageSrc, asImageWidthSrcSet, asLink, asLinkAttrs, asText, buildQueryURL, cookie_d_exports as cookie, createClient, createMigration, createWriteClient, documentToLinkField, filter, getGraphQLEndpoint, getRepositoryEndpoint, getRepositoryName, getToolbarSrc, isFilled_d_exports as isFilled, isRepositoryEndpoint, isRepositoryName, mapSliceZone, predicate, unstable_mapSliceZone };
173
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA6CM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2CA,8BAAqB;;;;KAatB,iBAAA,GAAoB;;;;KAIpB,sBAAA,GAAyB;;;;AAnEiB,cAsGzC,OA/FkB,EAAA;;;;;;;;;EA2ClB,SAAA,MAAA,EAAA,QAAoC;EAarC,SAAA,EAAA,EAAA,IAAA;EAIA,SAAA,QAAA,EAAA,WAAsB;EAmCrB,SAAA,SAA0B,EAAA,aAAA;EA0G3B,SAAA,IAAA,EAAA,iBAAoB;EAsEpB,SAAA,KAAA,EAAA,mBAAA;;;;;;;;;;KAtEA,iBAAA,GAAoB;;;;KAsEpB,qCAAA,GAAwC"}
package/dist/index.js CHANGED
@@ -1,99 +1,55 @@
1
1
  import { RichTextNodeType } from "./types/value/richText.js";
2
2
  import { mapSliceZone } from "./helpers/mapSliceZone.js";
3
3
  import { filter } from "./filter.js";
4
- import { createClient } from "./createClient.js";
4
+ import { cookie_exports } from "./cookie.js";
5
+ import { ForbiddenError, InvalidDataError, NotFoundError, ParsingError, PreviewTokenExpiredError, PrismicError, RefExpiredError, RefNotFoundError, RepositoryNotFoundError } from "./errors.js";
6
+ import { LinkType } from "./types/value/link.js";
7
+ import { documentToLinkField } from "./helpers/documentToLinkField.js";
8
+ import { asLink } from "./helpers/asLink.js";
9
+ import { buildQueryURL } from "./buildQueryURL.js";
10
+ import { isRepositoryName } from "./isRepositoryName.js";
11
+ import { getRepositoryEndpoint } from "./getRepositoryEndpoint.js";
12
+ import { getRepositoryName } from "./getRepositoryName.js";
13
+ import { isRepositoryEndpoint } from "./isRepositoryEndpoint.js";
5
14
  import { Client } from "./Client.js";
6
- import { createWriteClient } from "./createWriteClient.js";
15
+ import { createClient } from "./createClient.js";
16
+ import { PrismicMigrationAsset } from "./types/migration/Asset.js";
17
+ import { PrismicMigrationDocument } from "./types/migration/Document.js";
18
+ import { isFilled_exports } from "./helpers/isFilled.js";
7
19
  import { WriteClient } from "./WriteClient.js";
8
- import { createMigration } from "./createMigration.js";
20
+ import { createWriteClient } from "./createWriteClient.js";
9
21
  import { Migration } from "./Migration.js";
10
- import { getRepositoryEndpoint } from "./getRepositoryEndpoint.js";
11
- import { getRepositoryName } from "./getRepositoryName.js";
22
+ import { createMigration } from "./createMigration.js";
12
23
  import { getGraphQLEndpoint } from "./getGraphQLEndpoint.js";
13
- import { isRepositoryName } from "./isRepositoryName.js";
14
- import { isRepositoryEndpoint } from "./isRepositoryEndpoint.js";
15
- import { buildQueryURL } from "./buildQueryURL.js";
16
24
  import { getToolbarSrc } from "./getToolbarSrc.js";
17
- import * as cookie from "./cookie.js";
18
25
  import { asDate } from "./helpers/asDate.js";
19
- import { asLink } from "./helpers/asLink.js";
20
26
  import { asLinkAttrs } from "./helpers/asLinkAttrs.js";
21
27
  import { asText } from "./helpers/asText.js";
22
28
  import { asHTML } from "./helpers/asHTML.js";
23
29
  import { asImageSrc } from "./helpers/asImageSrc.js";
24
30
  import { asImageWidthSrcSet } from "./helpers/asImageWidthSrcSet.js";
25
31
  import { asImagePixelDensitySrcSet } from "./helpers/asImagePixelDensitySrcSet.js";
26
- import * as isFilled from "./helpers/isFilled.js";
27
- import { documentToLinkField } from "./helpers/documentToLinkField.js";
28
- import { PrismicError } from "./errors/PrismicError.js";
29
- import { ForbiddenError } from "./errors/ForbiddenError.js";
30
- import { InvalidDataError } from "./errors/InvalidDataError.js";
31
- import { NotFoundError } from "./errors/NotFoundError.js";
32
- import { RefNotFoundError } from "./errors/RefNotFoundError.js";
33
- import { RefExpiredError } from "./errors/RefExpiredError.js";
34
- import { PreviewTokenExpiredError } from "./errors/PreviewTokenExpired.js";
35
- import { ParsingError } from "./errors/ParsingError.js";
36
- import { RepositoryNotFoundError } from "./errors/RepositoryNotFoundError.js";
37
- import { LinkType } from "./types/value/link.js";
38
32
  import { OEmbedType } from "./types/value/embed.js";
39
33
  import { CustomTypeModelFieldType } from "./types/model/types.js";
40
34
  import { CustomTypeModelLinkSelectType } from "./types/model/link.js";
41
35
  import { CustomTypeModelSliceType } from "./types/model/sliceZone.js";
42
36
  import { CustomTypeModelSliceDisplay } from "./types/model/slice.js";
43
- import { PrismicMigrationDocument } from "./types/migration/Document.js";
44
- import { PrismicMigrationAsset } from "./types/migration/Asset.js";
45
37
  import { WebhookType } from "./types/webhook/types.js";
38
+
39
+ //#region src/index.ts
40
+ /**
41
+ * @deprecated Renamed to `filter`
42
+ */
46
43
  const predicate = filter;
44
+ /**
45
+ * @deprecated Renamed to `mapSliceZone`
46
+ */
47
47
  const unstable_mapSliceZone = mapSliceZone;
48
+ /**
49
+ * @deprecated Use {@link RichTextNodeType} instead.
50
+ */
48
51
  const Element = RichTextNodeType;
49
- export {
50
- Client,
51
- CustomTypeModelFieldType,
52
- CustomTypeModelLinkSelectType,
53
- CustomTypeModelSliceDisplay,
54
- CustomTypeModelSliceType,
55
- Element,
56
- ForbiddenError,
57
- InvalidDataError,
58
- LinkType,
59
- Migration,
60
- NotFoundError,
61
- OEmbedType,
62
- ParsingError,
63
- PreviewTokenExpiredError,
64
- PrismicError,
65
- PrismicMigrationAsset,
66
- PrismicMigrationDocument,
67
- RefExpiredError,
68
- RefNotFoundError,
69
- RepositoryNotFoundError,
70
- RichTextNodeType,
71
- WebhookType,
72
- WriteClient,
73
- asDate,
74
- asHTML,
75
- asImagePixelDensitySrcSet,
76
- asImageSrc,
77
- asImageWidthSrcSet,
78
- asLink,
79
- asLinkAttrs,
80
- asText,
81
- buildQueryURL,
82
- cookie,
83
- createClient,
84
- createMigration,
85
- createWriteClient,
86
- documentToLinkField,
87
- filter,
88
- getGraphQLEndpoint,
89
- getRepositoryEndpoint,
90
- getRepositoryName,
91
- getToolbarSrc,
92
- isFilled,
93
- isRepositoryEndpoint,
94
- isRepositoryName,
95
- mapSliceZone,
96
- predicate,
97
- unstable_mapSliceZone
98
- };
99
- //# sourceMappingURL=index.js.map
52
+
53
+ //#endregion
54
+ export { Client, CustomTypeModelFieldType, CustomTypeModelLinkSelectType, CustomTypeModelSliceDisplay, CustomTypeModelSliceType, Element, ForbiddenError, InvalidDataError, LinkType, Migration, NotFoundError, OEmbedType, ParsingError, PreviewTokenExpiredError, PrismicError, PrismicMigrationAsset, PrismicMigrationDocument, RefExpiredError, RefNotFoundError, RepositoryNotFoundError, RichTextNodeType, WebhookType, WriteClient, asDate, asHTML, asImagePixelDensitySrcSet, asImageSrc, asImageWidthSrcSet, asLink, asLinkAttrs, asText, buildQueryURL, cookie_exports as cookie, createClient, createMigration, createWriteClient, documentToLinkField, filter, getGraphQLEndpoint, getRepositoryEndpoint, getRepositoryName, getToolbarSrc, isFilled_exports as isFilled, isRepositoryEndpoint, isRepositoryName, mapSliceZone, predicate, unstable_mapSliceZone };
55
+ //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["// Imports are used for deprecations.\nimport type { CustomTypeModelIntegrationField } from \"./types/model/integration\"\nimport type { IntegrationField } from \"./types/value/integration\"\nimport { RichTextNodeType } from \"./types/value/richText\"\n\nimport type {\n\tHTMLRichTextFunctionSerializer,\n\tHTMLRichTextMapSerializer,\n} from \"./helpers/asHTML\"\nimport { mapSliceZone } from \"./helpers/mapSliceZone\"\n\nimport { filter } from \"./filter\"\n\n//=============================================================================\n// Client - Query content from Prismic.\n//=============================================================================\n\n// Primary Client API.\nexport { createClient } from \"./createClient\"\nexport { Client } from \"./Client\"\n\n// Write Client API.\nexport { createWriteClient } from \"./createWriteClient\"\nexport { WriteClient } from \"./WriteClient\"\n\n// Migration helper.\nexport { createMigration } from \"./createMigration\"\nexport { Migration } from \"./Migration\"\n\n// API endpoint helpers.\nexport { getRepositoryEndpoint } from \"./getRepositoryEndpoint\"\nexport { getRepositoryName } from \"./getRepositoryName\"\nexport { getGraphQLEndpoint } from \"./getGraphQLEndpoint\"\nexport { isRepositoryName } from \"./isRepositoryName\"\nexport { isRepositoryEndpoint } from \"./isRepositoryEndpoint\"\nexport { buildQueryURL } from \"./buildQueryURL\"\n\n// Toolbar helpers.\nexport { getToolbarSrc } from \"./getToolbarSrc\"\n\n// Query filters API.\n/**\n * @deprecated Renamed to `filter`\n */\n// TODO: Remove when we remove support for deprecated `predicate` export.\nconst predicate = filter\nexport { filter, predicate }\n\n// A collection of well-known cookie names shared between Prismic libraries and systems.\nexport * as cookie from \"./cookie\"\n\n// General types used to query content from Prismic. These are made public to allow users to better type their projects.\nexport type { CreateClient } from \"./createClient\"\nexport type { ClientConfig, HttpRequestLike } from \"./Client\"\nexport type { CreateWriteClient } from \"./createWriteClient\"\nexport type { WriteClientConfig, MigrateReporterEvents } from \"./WriteClient\"\nexport type {\n\tBuildQueryURLArgs,\n\tOrdering,\n\tQueryParams,\n\tRoute,\n} from \"./buildQueryURL\"\nexport type { CreateMigration } from \"./createMigration\"\nexport type {\n\tAbortSignalLike,\n\tFetchLike,\n\tRequestInitLike,\n\tResponseLike,\n} from \"./lib/request\"\n\n//=============================================================================\n// Helpers - Manipulate content from Prismic.\n//=============================================================================\n\n// Primary Helpers API.\nexport { asDate } from \"./helpers/asDate\"\nexport { asLink } from \"./helpers/asLink\"\nexport { asLinkAttrs } from \"./helpers/asLinkAttrs\"\nexport { asText } from \"./helpers/asText\"\nexport { asHTML } from \"./helpers/asHTML\"\nexport { asImageSrc } from \"./helpers/asImageSrc\"\nexport { asImageWidthSrcSet } from \"./helpers/asImageWidthSrcSet\"\nexport { asImagePixelDensitySrcSet } from \"./helpers/asImagePixelDensitySrcSet\"\nexport * as isFilled from \"./helpers/isFilled\"\n\n/**\n * @deprecated Renamed to `mapSliceZone`\n */\nconst unstable_mapSliceZone = mapSliceZone\nexport { mapSliceZone, unstable_mapSliceZone }\n\n// Conversion helper.\nexport { documentToLinkField } from \"./helpers/documentToLinkField\"\n\nexport type { LinkResolverFunction } from \"./helpers/asLink\"\nexport type { AsLinkAttrsConfig } from \"./helpers/asLinkAttrs\"\nexport type { SliceMapper } from \"./helpers/mapSliceZone\"\n\n/**\n * @deprecated Renamed to `HTMLRichTextMapSerializer`\n */\ntype HTMLMapSerializer = HTMLRichTextMapSerializer\n/**\n * @deprecated Renamed to `HTMLRichTextFunctionSerializer`\n */\ntype HTMLFunctionSerializer = HTMLRichTextFunctionSerializer\nexport type {\n\tHTMLRichTextMapSerializer,\n\tHTMLRichTextFunctionSerializer,\n\tHTMLMapSerializer,\n\tHTMLFunctionSerializer,\n}\nexport type { HTMLRichTextSerializer } from \"./helpers/asHTML\"\n\n//=============================================================================\n// Errors - Custom errors for Prismic APIs.\n//=============================================================================\n\n// Client Errors\nexport { PrismicError } from \"./errors/PrismicError\"\nexport { ForbiddenError } from \"./errors/ForbiddenError\"\nexport { InvalidDataError } from \"./errors/InvalidDataError\"\nexport { NotFoundError } from \"./errors/NotFoundError\"\nexport { RefNotFoundError } from \"./errors/RefNotFoundError\"\nexport { RefExpiredError } from \"./errors/RefExpiredError\"\nexport { PreviewTokenExpiredError } from \"./errors/PreviewTokenExpired\"\nexport { ParsingError } from \"./errors/ParsingError\"\nexport { RepositoryNotFoundError } from \"./errors/RepositoryNotFoundError\"\n\n//=============================================================================\n// Types - Types representing Prismic content, models, and API payloads.\n//=============================================================================\n\n// Values - Types representing Prismic content.\n/**\n * @deprecated Use {@link RichTextNodeType} instead.\n */\n// TODO: Remove in v8.\nconst Element = RichTextNodeType\nexport { RichTextNodeType, Element }\nexport { LinkType } from \"./types/value/link\"\nexport { OEmbedType } from \"./types/value/embed\"\n\nexport type {\n\tPrismicDocument,\n\tPrismicDocumentWithUID,\n\tPrismicDocumentWithoutUID,\n\tPrismicDocumentHeader,\n\tAlternateLanguage,\n} from \"./types/value/document\"\n\nexport type {\n\t// RichText & Title\n\tRichTextField,\n\t// RichText & Title (block nodes)\n\tRTTextNodeBase,\n\tRTHeading1Node,\n\tRTHeading2Node,\n\tRTHeading3Node,\n\tRTHeading4Node,\n\tRTHeading5Node,\n\tRTHeading6Node,\n\tRTParagraphNode,\n\tRTPreformattedNode,\n\tRTListItemNode,\n\tRTOListItemNode,\n\t// RichText & Title (span nodes)\n\tRTSpanNodeBase,\n\tRTStrongNode,\n\tRTEmNode,\n\tRTLabelNode,\n\t// RichText & Title (media nodes)\n\tRTImageNode,\n\tRTEmbedNode,\n\t// RichText & Title (link nodes)\n\tRTLinkNode,\n\t// RichText & Title (serialization related nodes)\n\tRTListNode,\n\tRTOListNode,\n\tRTSpanNode,\n\t// RichText & Title (helpers)\n\tRTNode,\n\tRTTextNode,\n\tRTBlockNode,\n\tRTInlineNode,\n\tRTAnyNode,\n\tRichTextNodeTypes,\n} from \"./types/value/richText\"\nexport type { TitleField } from \"./types/value/title\"\n\nexport type {\n\tImageField,\n\tImageFieldImage,\n\tFilledImageFieldImage,\n\tEmptyImageFieldImage,\n} from \"./types/value/image\"\n\nexport type {\n\tEmptyLinkField,\n\tLinkField,\n\tFilledLinkToWebField,\n} from \"./types/value/link\"\nexport type {\n\tContentRelationshipField,\n\tFilledContentRelationshipField,\n} from \"./types/value/contentRelationship\"\nexport type {\n\tLinkToMediaField,\n\tFilledLinkToMediaField,\n} from \"./types/value/linkToMedia\"\n\nexport type {\n\tOEmbedExtra,\n\tPhotoOEmbed,\n\tVideoOEmbed,\n\tLinkOEmbed,\n\tRichOEmbed,\n\tAnyOEmbed,\n\tEmbedField,\n} from \"./types/value/embed\"\n\nexport type {\n\tTableField,\n\tTableFieldHead,\n\tTableFieldHeadRow,\n\tTableFieldBody,\n\tTableFieldBodyRow,\n\tTableFieldHeaderCell,\n\tTableFieldDataCell,\n} from \"./types/value/table\"\n\nexport type { BooleanField } from \"./types/value/boolean\"\nexport type { ColorField } from \"./types/value/color\"\nexport type { DateField } from \"./types/value/date\"\nexport type { KeyTextField } from \"./types/value/keyText\"\nexport type { NumberField } from \"./types/value/number\"\nexport type { SelectField } from \"./types/value/select\"\nexport type { TimestampField } from \"./types/value/timestamp\"\nexport type { GeoPointField } from \"./types/value/geoPoint\"\n\n/**\n * @deprecated Renamed to `IntegrationField`\n */\n// TODO: Remove when we remove support for deprecated `IntegrationFields` export.\ntype IntegrationFields = IntegrationField\nexport type { IntegrationField, IntegrationFields }\nexport type { IntegrationFieldData } from \"./types/value/integration\"\n\nexport type { GroupField, NestedGroupField } from \"./types/value/group\"\n\nexport type { SliceZone } from \"./types/value/sliceZone\"\nexport type { Slice } from \"./types/value/slice\"\nexport type { SharedSlice } from \"./types/value/sharedSlice\"\nexport type { SharedSliceVariation } from \"./types/value/sharedSliceVariation\"\n\nexport type {\n\tFieldState,\n\tAnyRegularField,\n\tAnySlicePrimaryField,\n\tRepeatable,\n} from \"./types/value/types\"\n\n// Models - Types representing Prismic content models.\nexport { CustomTypeModelFieldType } from \"./types/model/types\"\nexport { CustomTypeModelLinkSelectType } from \"./types/model/link\"\nexport { CustomTypeModelSliceType } from \"./types/model/sliceZone\"\nexport { CustomTypeModelSliceDisplay } from \"./types/model/slice\"\n\nexport type {\n\tCustomTypeModel,\n\tCustomTypeModelDefinition,\n\tCustomTypeModelTab,\n} from \"./types/model/customType\"\n\nexport type {\n\tCustomTypeModelRichTextField,\n\tCustomTypeModelRichTextMultiField,\n\tCustomTypeModelRichTextSingleField,\n} from \"./types/model/richText\"\nexport type { CustomTypeModelTitleField } from \"./types/model/title\"\n\nexport type {\n\tCustomTypeModelImageField,\n\tCustomTypeModelImageConstraint,\n\tCustomTypeModelImageThumbnail,\n} from \"./types/model/image\"\n\nexport type {\n\tCustomTypeModelFetchCustomTypeLevel1,\n\tCustomTypeModelFetchContentRelationshipLevel1,\n\tCustomTypeModelFetchGroupLevel1,\n\tCustomTypeModelFetchCustomTypeLevel2,\n\tCustomTypeModelFetchGroupLevel2,\n\tCustomTypeModelContentRelationshipField,\n} from \"./types/model/contentRelationship\"\nexport type { CustomTypeModelLinkField } from \"./types/model/link\"\nexport type { CustomTypeModelLinkToMediaField } from \"./types/model/linkToMedia\"\n\nexport type { CustomTypeModelEmbedField } from \"./types/model/embed\"\n\nexport type { CustomTypeModelBooleanField } from \"./types/model/boolean\"\nexport type { CustomTypeModelColorField } from \"./types/model/color\"\nexport type { CustomTypeModelDateField } from \"./types/model/date\"\nexport type { CustomTypeModelKeyTextField } from \"./types/model/keyText\"\nexport type { CustomTypeModelNumberField } from \"./types/model/number\"\nexport type { CustomTypeModelSelectField } from \"./types/model/select\"\nexport type { CustomTypeModelTimestampField } from \"./types/model/timestamp\"\nexport type { CustomTypeModelGeoPointField } from \"./types/model/geoPoint\"\nexport type { CustomTypeModelTableField } from \"./types/model/table\"\n\n/**\n * @deprecated Renamed to `CustomTypeModelIntegrationField`.\n */\n// TODO: Remove when we remove support for deprecated `CustomTypeModelIntegrationField` export.\ntype CustomTypeModelIntegrationFieldsField = CustomTypeModelIntegrationField\nexport {\n\tCustomTypeModelIntegrationField,\n\tCustomTypeModelIntegrationFieldsField,\n}\nexport type {\n\tCustomTypeModelGroupField,\n\tCustomTypeModelNestedGroupField,\n} from \"./types/model/group\"\nexport type {\n\tCustomTypeModelSliceZoneField,\n\tCustomTypeModelSliceLabel,\n\tCustomTypeModelSharedSlice,\n} from \"./types/model/sliceZone\"\nexport type {\n\tCustomTypeModelSlice,\n\tCustomTypeModelLegacySlice,\n} from \"./types/model/slice\"\nexport type { SharedSliceModel } from \"./types/model/sharedSlice\"\nexport type { SharedSliceModelVariation } from \"./types/model/sharedSliceVariation\"\n\nexport type { CustomTypeModelUIDField } from \"./types/model/uid\"\n\nexport type { CustomTypeModelRangeField } from \"./types/model/range\"\nexport type { CustomTypeModelSeparatorField } from \"./types/model/separator\"\n\nexport type {\n\tCustomTypeModelField,\n\tCustomTypeModelFieldForGroup,\n\tCustomTypeModelFieldForNestedGroup,\n\tCustomTypeModelFieldForSlicePrimary,\n} from \"./types/model/types\"\n\n// Migrations - Types representing Prismic Migration API content values.\nexport { PrismicMigrationDocument } from \"./types/migration/Document\"\nexport type {\n\tPendingPrismicDocument,\n\tExistingPrismicDocument,\n\tInjectMigrationSpecificTypes,\n} from \"./types/migration/Document\"\n\nexport { PrismicMigrationAsset } from \"./types/migration/Asset\"\nexport type {\n\tMigrationImage,\n\tMigrationLinkToMedia,\n\tMigrationRTImageNode,\n} from \"./types/migration/Asset\"\nexport type { MigrationContentRelationship } from \"./types/migration/ContentRelationship\"\n\n// API - Types representing Prismic Content API responses.\nexport type { Query } from \"./types/api/query\"\n\nexport type { Ref } from \"./types/api/ref\"\n\nexport type { Release } from \"./types/api/release\"\n\nexport type {\n\tRepository,\n\tLanguage,\n\tForm,\n\tFormField,\n} from \"./types/api/repository\"\n\nexport type { Tags } from \"./types/api/tags\"\n\n// Integration - Types representing Prismic's integration API.\nexport type {\n\tIntegrationAPIItem,\n\tIntegrationAPIResults,\n} from \"./types/api/integration\"\n\n// Webhook - Types representing Prismic webhooks.\nexport { WebhookType } from \"./types/webhook/types\"\n\nexport type { WebhookBody } from \"./types/webhook/types\"\n\nexport type { WebhookBodyAPIUpdate } from \"./types/webhook/apiUpdate\"\n\nexport type { WebhookBodyTestTrigger } from \"./types/webhook/testTrigger\"\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CA,MAAM,YAAY;AA2ClB,MAAM,wBAAwB;AAkD9B,MAAM,UAAU;"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["// Imports are used for deprecations.\nimport type { CustomTypeModelIntegrationField } from \"./types/model/integration\"\nimport type { IntegrationField } from \"./types/value/integration\"\nimport { RichTextNodeType } from \"./types/value/richText\"\n\nimport type {\n\tHTMLRichTextFunctionSerializer,\n\tHTMLRichTextMapSerializer,\n} from \"./helpers/asHTML\"\nimport { mapSliceZone } from \"./helpers/mapSliceZone\"\n\nimport { filter } from \"./filter\"\n\n//=============================================================================\n// Client - Query content from Prismic.\n//=============================================================================\n\n// Primary Client API.\nexport { createClient } from \"./createClient\"\nexport { Client } from \"./Client\"\n\n// Write Client API.\nexport { createWriteClient } from \"./createWriteClient\"\nexport { WriteClient } from \"./WriteClient\"\n\n// Migration helper.\nexport { createMigration } from \"./createMigration\"\nexport { Migration } from \"./Migration\"\n\n// API endpoint helpers.\nexport { getRepositoryEndpoint } from \"./getRepositoryEndpoint\"\nexport { getRepositoryName } from \"./getRepositoryName\"\nexport { getGraphQLEndpoint } from \"./getGraphQLEndpoint\"\nexport { isRepositoryName } from \"./isRepositoryName\"\nexport { isRepositoryEndpoint } from \"./isRepositoryEndpoint\"\nexport { buildQueryURL } from \"./buildQueryURL\"\n\n// Toolbar helpers.\nexport { getToolbarSrc } from \"./getToolbarSrc\"\n\n// Query filters API.\n/**\n * @deprecated Renamed to `filter`\n */\n// TODO: Remove when we remove support for deprecated `predicate` export.\nconst predicate = filter\nexport { filter, predicate }\n\n// A collection of well-known cookie names shared between Prismic libraries and systems.\nexport * as cookie from \"./cookie\"\n\n// General types used to query content from Prismic. These are made public to allow users to better type their projects.\nexport type { CreateClient } from \"./createClient\"\nexport type { ClientConfig, HttpRequestLike } from \"./Client\"\nexport type { CreateWriteClient } from \"./createWriteClient\"\nexport type { WriteClientConfig, MigrateReporterEvents } from \"./WriteClient\"\nexport type {\n\tBuildQueryURLArgs,\n\tOrdering,\n\tQueryParams,\n\tRoute,\n} from \"./buildQueryURL\"\nexport type { CreateMigration } from \"./createMigration\"\nexport type {\n\tAbortSignalLike,\n\tFetchLike,\n\tRequestInitLike,\n\tResponseLike,\n} from \"./lib/request\"\n\n//=============================================================================\n// Helpers - Manipulate content from Prismic.\n//=============================================================================\n\n// Primary Helpers API.\nexport { asDate } from \"./helpers/asDate\"\nexport { asLink } from \"./helpers/asLink\"\nexport { asLinkAttrs } from \"./helpers/asLinkAttrs\"\nexport { asText } from \"./helpers/asText\"\nexport { asHTML } from \"./helpers/asHTML\"\nexport { asImageSrc } from \"./helpers/asImageSrc\"\nexport { asImageWidthSrcSet } from \"./helpers/asImageWidthSrcSet\"\nexport { asImagePixelDensitySrcSet } from \"./helpers/asImagePixelDensitySrcSet\"\nexport * as isFilled from \"./helpers/isFilled\"\n\n/**\n * @deprecated Renamed to `mapSliceZone`\n */\nconst unstable_mapSliceZone = mapSliceZone\nexport { mapSliceZone, unstable_mapSliceZone }\n\n// Conversion helper.\nexport { documentToLinkField } from \"./helpers/documentToLinkField\"\n\nexport type { LinkResolverFunction } from \"./helpers/asLink\"\nexport type { AsLinkAttrsConfig } from \"./helpers/asLinkAttrs\"\nexport type { SliceMapper } from \"./helpers/mapSliceZone\"\n\n/**\n * @deprecated Renamed to `HTMLRichTextMapSerializer`\n */\ntype HTMLMapSerializer = HTMLRichTextMapSerializer\n/**\n * @deprecated Renamed to `HTMLRichTextFunctionSerializer`\n */\ntype HTMLFunctionSerializer = HTMLRichTextFunctionSerializer\nexport type {\n\tHTMLRichTextMapSerializer,\n\tHTMLRichTextFunctionSerializer,\n\tHTMLMapSerializer,\n\tHTMLFunctionSerializer,\n}\nexport type { HTMLRichTextSerializer } from \"./helpers/asHTML\"\n\n//=============================================================================\n// Errors - Custom errors for Prismic APIs.\n//=============================================================================\n\n// Client Errors\nexport {\n\tForbiddenError,\n\tInvalidDataError,\n\tNotFoundError,\n\tParsingError,\n\tPreviewTokenExpiredError,\n\tPrismicError,\n\tRefExpiredError,\n\tRefNotFoundError,\n\tRepositoryNotFoundError,\n} from \"./errors\"\n\n//=============================================================================\n// Types - Types representing Prismic content, models, and API payloads.\n//=============================================================================\n\n// Values - Types representing Prismic content.\n/**\n * @deprecated Use {@link RichTextNodeType} instead.\n */\n// TODO: Remove in v8.\nconst Element = RichTextNodeType\nexport { RichTextNodeType, Element }\nexport { LinkType } from \"./types/value/link\"\nexport { OEmbedType } from \"./types/value/embed\"\n\nexport type {\n\tPrismicDocument,\n\tPrismicDocumentWithUID,\n\tPrismicDocumentWithoutUID,\n\tPrismicDocumentHeader,\n\tAlternateLanguage,\n} from \"./types/value/document\"\n\nexport type {\n\t// RichText & Title\n\tRichTextField,\n\t// RichText & Title (block nodes)\n\tRTTextNodeBase,\n\tRTHeading1Node,\n\tRTHeading2Node,\n\tRTHeading3Node,\n\tRTHeading4Node,\n\tRTHeading5Node,\n\tRTHeading6Node,\n\tRTParagraphNode,\n\tRTPreformattedNode,\n\tRTListItemNode,\n\tRTOListItemNode,\n\t// RichText & Title (span nodes)\n\tRTSpanNodeBase,\n\tRTStrongNode,\n\tRTEmNode,\n\tRTLabelNode,\n\t// RichText & Title (media nodes)\n\tRTImageNode,\n\tRTEmbedNode,\n\t// RichText & Title (link nodes)\n\tRTLinkNode,\n\t// RichText & Title (serialization related nodes)\n\tRTListNode,\n\tRTOListNode,\n\tRTSpanNode,\n\t// RichText & Title (helpers)\n\tRTNode,\n\tRTTextNode,\n\tRTBlockNode,\n\tRTInlineNode,\n\tRTAnyNode,\n\tRichTextNodeTypes,\n} from \"./types/value/richText\"\nexport type { TitleField } from \"./types/value/title\"\n\nexport type {\n\tImageField,\n\tImageFieldImage,\n\tFilledImageFieldImage,\n\tEmptyImageFieldImage,\n} from \"./types/value/image\"\n\nexport type {\n\tEmptyLinkField,\n\tLinkField,\n\tFilledLinkToWebField,\n} from \"./types/value/link\"\nexport type {\n\tContentRelationshipField,\n\tFilledContentRelationshipField,\n} from \"./types/value/contentRelationship\"\nexport type {\n\tLinkToMediaField,\n\tFilledLinkToMediaField,\n} from \"./types/value/linkToMedia\"\n\nexport type {\n\tOEmbedExtra,\n\tPhotoOEmbed,\n\tVideoOEmbed,\n\tLinkOEmbed,\n\tRichOEmbed,\n\tAnyOEmbed,\n\tEmbedField,\n} from \"./types/value/embed\"\n\nexport type {\n\tTableField,\n\tTableFieldHead,\n\tTableFieldHeadRow,\n\tTableFieldBody,\n\tTableFieldBodyRow,\n\tTableFieldHeaderCell,\n\tTableFieldDataCell,\n} from \"./types/value/table\"\n\nexport type { BooleanField } from \"./types/value/boolean\"\nexport type { ColorField } from \"./types/value/color\"\nexport type { DateField } from \"./types/value/date\"\nexport type { KeyTextField } from \"./types/value/keyText\"\nexport type { NumberField } from \"./types/value/number\"\nexport type { SelectField } from \"./types/value/select\"\nexport type { TimestampField } from \"./types/value/timestamp\"\nexport type { GeoPointField } from \"./types/value/geoPoint\"\n\n/**\n * @deprecated Renamed to `IntegrationField`\n */\n// TODO: Remove when we remove support for deprecated `IntegrationFields` export.\ntype IntegrationFields = IntegrationField\nexport type { IntegrationField, IntegrationFields }\nexport type { IntegrationFieldData } from \"./types/value/integration\"\n\nexport type { GroupField, NestedGroupField } from \"./types/value/group\"\n\nexport type { SliceZone } from \"./types/value/sliceZone\"\nexport type { Slice } from \"./types/value/slice\"\nexport type { SharedSlice } from \"./types/value/sharedSlice\"\nexport type { SharedSliceVariation } from \"./types/value/sharedSliceVariation\"\n\nexport type {\n\tFieldState,\n\tAnyRegularField,\n\tAnySlicePrimaryField,\n\tRepeatable,\n} from \"./types/value/types\"\n\n// Models - Types representing Prismic content models.\nexport { CustomTypeModelFieldType } from \"./types/model/types\"\nexport { CustomTypeModelLinkSelectType } from \"./types/model/link\"\nexport { CustomTypeModelSliceType } from \"./types/model/sliceZone\"\nexport { CustomTypeModelSliceDisplay } from \"./types/model/slice\"\n\nexport type {\n\tCustomTypeModel,\n\tCustomTypeModelDefinition,\n\tCustomTypeModelTab,\n} from \"./types/model/customType\"\n\nexport type {\n\tCustomTypeModelRichTextField,\n\tCustomTypeModelRichTextMultiField,\n\tCustomTypeModelRichTextSingleField,\n} from \"./types/model/richText\"\nexport type { CustomTypeModelTitleField } from \"./types/model/title\"\n\nexport type {\n\tCustomTypeModelImageField,\n\tCustomTypeModelImageConstraint,\n\tCustomTypeModelImageThumbnail,\n} from \"./types/model/image\"\n\nexport type {\n\tCustomTypeModelFetchCustomTypeLevel1,\n\tCustomTypeModelFetchContentRelationshipLevel1,\n\tCustomTypeModelFetchGroupLevel1,\n\tCustomTypeModelFetchCustomTypeLevel2,\n\tCustomTypeModelFetchGroupLevel2,\n\tCustomTypeModelContentRelationshipField,\n} from \"./types/model/contentRelationship\"\nexport type { CustomTypeModelLinkField } from \"./types/model/link\"\nexport type { CustomTypeModelLinkToMediaField } from \"./types/model/linkToMedia\"\n\nexport type { CustomTypeModelEmbedField } from \"./types/model/embed\"\n\nexport type { CustomTypeModelBooleanField } from \"./types/model/boolean\"\nexport type { CustomTypeModelColorField } from \"./types/model/color\"\nexport type { CustomTypeModelDateField } from \"./types/model/date\"\nexport type { CustomTypeModelKeyTextField } from \"./types/model/keyText\"\nexport type { CustomTypeModelNumberField } from \"./types/model/number\"\nexport type { CustomTypeModelSelectField } from \"./types/model/select\"\nexport type { CustomTypeModelTimestampField } from \"./types/model/timestamp\"\nexport type { CustomTypeModelGeoPointField } from \"./types/model/geoPoint\"\nexport type { CustomTypeModelTableField } from \"./types/model/table\"\n\n/**\n * @deprecated Renamed to `CustomTypeModelIntegrationField`.\n */\n// TODO: Remove when we remove support for deprecated `CustomTypeModelIntegrationField` export.\ntype CustomTypeModelIntegrationFieldsField = CustomTypeModelIntegrationField\nexport {\n\tCustomTypeModelIntegrationField,\n\tCustomTypeModelIntegrationFieldsField,\n}\nexport type {\n\tCustomTypeModelGroupField,\n\tCustomTypeModelNestedGroupField,\n} from \"./types/model/group\"\nexport type {\n\tCustomTypeModelSliceZoneField,\n\tCustomTypeModelSliceLabel,\n\tCustomTypeModelSharedSlice,\n} from \"./types/model/sliceZone\"\nexport type {\n\tCustomTypeModelSlice,\n\tCustomTypeModelLegacySlice,\n} from \"./types/model/slice\"\nexport type { SharedSliceModel } from \"./types/model/sharedSlice\"\nexport type { SharedSliceModelVariation } from \"./types/model/sharedSliceVariation\"\n\nexport type { CustomTypeModelUIDField } from \"./types/model/uid\"\n\nexport type { CustomTypeModelRangeField } from \"./types/model/range\"\nexport type { CustomTypeModelSeparatorField } from \"./types/model/separator\"\n\nexport type {\n\tCustomTypeModelField,\n\tCustomTypeModelFieldForGroup,\n\tCustomTypeModelFieldForNestedGroup,\n\tCustomTypeModelFieldForSlicePrimary,\n} from \"./types/model/types\"\n\n// Migrations - Types representing Prismic Migration API content values.\nexport { PrismicMigrationDocument } from \"./types/migration/Document\"\nexport type {\n\tPendingPrismicDocument,\n\tExistingPrismicDocument,\n\tInjectMigrationSpecificTypes,\n} from \"./types/migration/Document\"\n\nexport { PrismicMigrationAsset } from \"./types/migration/Asset\"\nexport type {\n\tMigrationImage,\n\tMigrationLinkToMedia,\n\tMigrationRTImageNode,\n} from \"./types/migration/Asset\"\nexport type { MigrationContentRelationship } from \"./types/migration/ContentRelationship\"\n\n// API - Types representing Prismic Content API responses.\nexport type { Query } from \"./types/api/query\"\n\nexport type { Ref } from \"./types/api/ref\"\n\nexport type { Release } from \"./types/api/release\"\n\nexport type {\n\tRepository,\n\tLanguage,\n\tForm,\n\tFormField,\n} from \"./types/api/repository\"\n\nexport type { Tags } from \"./types/api/tags\"\n\n// Integration - Types representing Prismic's integration API.\nexport type {\n\tIntegrationAPIItem,\n\tIntegrationAPIResults,\n} from \"./types/api/integration\"\n\n// Webhook - Types representing Prismic webhooks.\nexport { WebhookType } from \"./types/webhook/types\"\n\nexport type { WebhookBody } from \"./types/webhook/types\"\n\nexport type { WebhookBodyAPIUpdate } from \"./types/webhook/apiUpdate\"\n\nexport type { WebhookBodyTestTrigger } from \"./types/webhook/testTrigger\"\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6CA,MAAM,YAAY;;;;AA2ClB,MAAM,wBAAwB;;;;AAoD9B,MAAM,UAAU"}
@@ -1,12 +1,23 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
1
+
2
+ //#region src/isRepositoryEndpoint.ts
3
+ /**
4
+ * Determines if a string is a Prismic Content API endpoint. Note that any valid
5
+ * URL is a valid endpoint to support network proxies.
6
+ *
7
+ * @param input - Input to test.
8
+ *
9
+ * @returns `true` if `input` is a valid Prismic Content API endpoint, `false`
10
+ * otherwise.
11
+ */
3
12
  const isRepositoryEndpoint = (input) => {
4
- try {
5
- new URL(input);
6
- return true;
7
- } catch {
8
- return false;
9
- }
13
+ try {
14
+ new URL(input);
15
+ return true;
16
+ } catch {
17
+ return false;
18
+ }
10
19
  };
20
+
21
+ //#endregion
11
22
  exports.isRepositoryEndpoint = isRepositoryEndpoint;
12
- //# sourceMappingURL=isRepositoryEndpoint.cjs.map
23
+ //# sourceMappingURL=isRepositoryEndpoint.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"isRepositoryEndpoint.cjs","sources":["../../src/isRepositoryEndpoint.ts"],"sourcesContent":["/**\n * Determines if a string is a Prismic Content API endpoint. Note that any valid\n * URL is a valid endpoint to support network proxies.\n *\n * @param input - Input to test.\n *\n * @returns `true` if `input` is a valid Prismic Content API endpoint, `false`\n * otherwise.\n */\nexport const isRepositoryEndpoint = (input: string): boolean => {\n\ttry {\n\t\tnew URL(input)\n\n\t\treturn true\n\t} catch {\n\t\treturn false\n\t}\n}\n"],"names":[],"mappings":";;AASO,MAAM,uBAAuB,CAAC,UAA0B;AAC9D,MAAI;AACH,QAAI,IAAI,KAAK;AAEb,WAAO;AAAA,EACR,QAAQ;AACP,WAAO;AAAA,EACR;AACD;;"}
1
+ {"version":3,"file":"isRepositoryEndpoint.cjs","names":[],"sources":["../src/isRepositoryEndpoint.ts"],"sourcesContent":["/**\n * Determines if a string is a Prismic Content API endpoint. Note that any valid\n * URL is a valid endpoint to support network proxies.\n *\n * @param input - Input to test.\n *\n * @returns `true` if `input` is a valid Prismic Content API endpoint, `false`\n * otherwise.\n */\nexport const isRepositoryEndpoint = (input: string): boolean => {\n\ttry {\n\t\tnew URL(input)\n\n\t\treturn true\n\t} catch {\n\t\treturn false\n\t}\n}\n"],"mappings":";;;;;;;;;;;AASA,MAAa,wBAAwB,UAA2B;AAC/D,KAAI;AACH,MAAI,IAAI,MAAM;AAEd,SAAO;SACA;AACP,SAAO"}