@prismicio/client 7.21.0-alpha.2 → 7.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (463) hide show
  1. package/dist/Client.cjs +1262 -0
  2. package/dist/Client.cjs.map +1 -0
  3. package/dist/Client.d.ts +981 -0
  4. package/dist/Client.js +1262 -0
  5. package/dist/Client.js.map +1 -0
  6. package/dist/Migration.cjs +297 -0
  7. package/dist/Migration.cjs.map +1 -0
  8. package/dist/Migration.d.ts +213 -0
  9. package/dist/Migration.js +297 -0
  10. package/dist/Migration.js.map +1 -0
  11. package/dist/WriteClient.cjs +575 -0
  12. package/dist/WriteClient.cjs.map +1 -0
  13. package/dist/WriteClient.d.ts +281 -0
  14. package/dist/WriteClient.js +575 -0
  15. package/dist/WriteClient.js.map +1 -0
  16. package/dist/buildQueryURL.cjs +66 -0
  17. package/dist/buildQueryURL.cjs.map +1 -0
  18. package/dist/buildQueryURL.d.ts +217 -0
  19. package/dist/buildQueryURL.js +66 -0
  20. package/dist/buildQueryURL.js.map +1 -0
  21. package/dist/cookie.cjs +5 -0
  22. package/dist/cookie.cjs.map +1 -0
  23. package/dist/cookie.d.ts +5 -0
  24. package/dist/cookie.js +5 -0
  25. package/dist/cookie.js.map +1 -0
  26. package/dist/createClient.cjs +6 -0
  27. package/dist/createClient.cjs.map +1 -0
  28. package/dist/createClient.d.ts +35 -0
  29. package/dist/createClient.js +6 -0
  30. package/dist/createClient.js.map +1 -0
  31. package/dist/createMigration.cjs +6 -0
  32. package/dist/createMigration.cjs.map +1 -0
  33. package/dist/createMigration.d.ts +24 -0
  34. package/dist/createMigration.js +6 -0
  35. package/dist/createMigration.js.map +1 -0
  36. package/dist/createWriteClient.cjs +6 -0
  37. package/dist/createWriteClient.cjs.map +1 -0
  38. package/dist/createWriteClient.d.ts +32 -0
  39. package/dist/createWriteClient.js +6 -0
  40. package/dist/createWriteClient.js.map +1 -0
  41. package/dist/errors/ForbiddenError.cjs +7 -0
  42. package/dist/errors/ForbiddenError.cjs.map +1 -0
  43. package/dist/errors/ForbiddenError.d.ts +11 -0
  44. package/dist/errors/ForbiddenError.js +7 -0
  45. package/dist/errors/ForbiddenError.js.map +1 -0
  46. package/dist/errors/InvalidDataError.cjs +7 -0
  47. package/dist/errors/InvalidDataError.cjs.map +1 -0
  48. package/dist/errors/InvalidDataError.d.ts +3 -0
  49. package/dist/errors/InvalidDataError.js +7 -0
  50. package/dist/errors/InvalidDataError.js.map +1 -0
  51. package/dist/errors/NotFoundError.cjs +7 -0
  52. package/dist/errors/NotFoundError.cjs.map +1 -0
  53. package/dist/errors/NotFoundError.d.ts +3 -0
  54. package/dist/errors/NotFoundError.js +7 -0
  55. package/dist/errors/NotFoundError.js.map +1 -0
  56. package/dist/errors/ParsingError.cjs +7 -0
  57. package/dist/errors/ParsingError.cjs.map +1 -0
  58. package/dist/errors/ParsingError.d.ts +14 -0
  59. package/dist/errors/ParsingError.js +7 -0
  60. package/dist/errors/ParsingError.js.map +1 -0
  61. package/dist/errors/PreviewTokenExpired.cjs +7 -0
  62. package/dist/errors/PreviewTokenExpired.cjs.map +1 -0
  63. package/dist/errors/PreviewTokenExpired.d.ts +8 -0
  64. package/dist/errors/PreviewTokenExpired.js +7 -0
  65. package/dist/errors/PreviewTokenExpired.js.map +1 -0
  66. package/dist/errors/PrismicError.cjs +13 -0
  67. package/dist/errors/PrismicError.cjs.map +1 -0
  68. package/dist/errors/PrismicError.d.ts +5 -0
  69. package/dist/errors/PrismicError.js +13 -0
  70. package/dist/errors/PrismicError.js.map +1 -0
  71. package/dist/errors/RefExpiredError.cjs +7 -0
  72. package/dist/errors/RefExpiredError.cjs.map +1 -0
  73. package/dist/errors/RefExpiredError.d.ts +8 -0
  74. package/dist/errors/RefExpiredError.js +7 -0
  75. package/dist/errors/RefExpiredError.js.map +1 -0
  76. package/dist/errors/RefNotFoundError.cjs +7 -0
  77. package/dist/errors/RefNotFoundError.cjs.map +1 -0
  78. package/dist/errors/RefNotFoundError.d.ts +8 -0
  79. package/dist/errors/RefNotFoundError.js +7 -0
  80. package/dist/errors/RefNotFoundError.js.map +1 -0
  81. package/dist/errors/RepositoryNotFoundError.cjs +7 -0
  82. package/dist/errors/RepositoryNotFoundError.cjs.map +1 -0
  83. package/dist/errors/RepositoryNotFoundError.d.ts +3 -0
  84. package/dist/errors/RepositoryNotFoundError.js +7 -0
  85. package/dist/errors/RepositoryNotFoundError.js.map +1 -0
  86. package/dist/filter.cjs +247 -0
  87. package/dist/filter.cjs.map +1 -0
  88. package/dist/filter.d.ts +209 -0
  89. package/dist/filter.js +247 -0
  90. package/dist/filter.js.map +1 -0
  91. package/dist/getGraphQLEndpoint.cjs +13 -0
  92. package/dist/getGraphQLEndpoint.cjs.map +1 -0
  93. package/dist/getGraphQLEndpoint.d.ts +10 -0
  94. package/dist/getGraphQLEndpoint.js +13 -0
  95. package/dist/getGraphQLEndpoint.js.map +1 -0
  96. package/dist/getRepositoryEndpoint.cjs +13 -0
  97. package/dist/getRepositoryEndpoint.cjs.map +1 -0
  98. package/dist/getRepositoryEndpoint.d.ts +19 -0
  99. package/dist/getRepositoryEndpoint.js +13 -0
  100. package/dist/getRepositoryEndpoint.js.map +1 -0
  101. package/dist/getRepositoryName.cjs +17 -0
  102. package/dist/getRepositoryName.cjs.map +1 -0
  103. package/dist/getRepositoryName.d.ts +12 -0
  104. package/dist/getRepositoryName.js +17 -0
  105. package/dist/getRepositoryName.js.map +1 -0
  106. package/dist/getToolbarSrc.cjs +13 -0
  107. package/dist/getToolbarSrc.cjs.map +1 -0
  108. package/dist/getToolbarSrc.d.ts +34 -0
  109. package/dist/getToolbarSrc.js +13 -0
  110. package/dist/getToolbarSrc.js.map +1 -0
  111. package/dist/helpers/asDate.cjs +14 -0
  112. package/dist/helpers/asDate.cjs.map +1 -0
  113. package/dist/helpers/asDate.d.ts +24 -0
  114. package/dist/helpers/asDate.js +14 -0
  115. package/dist/helpers/asDate.js.map +1 -0
  116. package/dist/helpers/asHTML.cjs +86 -0
  117. package/dist/helpers/asHTML.cjs.map +1 -0
  118. package/dist/helpers/asHTML.d.ts +149 -0
  119. package/dist/helpers/asHTML.js +86 -0
  120. package/dist/helpers/asHTML.js.map +1 -0
  121. package/dist/helpers/asImagePixelDensitySrcSet.cjs +21 -0
  122. package/dist/helpers/asImagePixelDensitySrcSet.cjs.map +1 -0
  123. package/dist/helpers/asImagePixelDensitySrcSet.d.ts +54 -0
  124. package/dist/helpers/asImagePixelDensitySrcSet.js +21 -0
  125. package/dist/helpers/asImagePixelDensitySrcSet.js.map +1 -0
  126. package/dist/helpers/asImageSrc.cjs +13 -0
  127. package/dist/helpers/asImageSrc.cjs.map +1 -0
  128. package/dist/helpers/asImageSrc.d.ts +29 -0
  129. package/dist/helpers/asImageSrc.js +13 -0
  130. package/dist/helpers/asImageSrc.js.map +1 -0
  131. package/dist/helpers/asImageWidthSrcSet.cjs +45 -0
  132. package/dist/helpers/asImageWidthSrcSet.cjs.map +1 -0
  133. package/dist/helpers/asImageWidthSrcSet.d.ts +62 -0
  134. package/dist/helpers/asImageWidthSrcSet.js +45 -0
  135. package/dist/helpers/asImageWidthSrcSet.js.map +1 -0
  136. package/dist/helpers/asLink.cjs +47 -0
  137. package/dist/helpers/asLink.cjs.map +1 -0
  138. package/dist/helpers/asLink.d.ts +78 -0
  139. package/dist/helpers/asLink.js +47 -0
  140. package/dist/helpers/asLink.js.map +1 -0
  141. package/dist/helpers/asLinkAttrs.cjs +28 -0
  142. package/dist/helpers/asLinkAttrs.cjs.map +1 -0
  143. package/dist/helpers/asLinkAttrs.d.ts +47 -0
  144. package/dist/helpers/asLinkAttrs.js +28 -0
  145. package/dist/helpers/asLinkAttrs.js.map +1 -0
  146. package/dist/helpers/asText.cjs +21 -0
  147. package/dist/helpers/asText.cjs.map +1 -0
  148. package/dist/helpers/asText.d.ts +57 -0
  149. package/dist/helpers/asText.js +21 -0
  150. package/dist/helpers/asText.js.map +1 -0
  151. package/dist/helpers/documentToLinkField.cjs +26 -0
  152. package/dist/helpers/documentToLinkField.cjs.map +1 -0
  153. package/dist/helpers/documentToLinkField.d.ts +17 -0
  154. package/dist/helpers/documentToLinkField.js +26 -0
  155. package/dist/helpers/documentToLinkField.js.map +1 -0
  156. package/dist/helpers/isFilled.cjs +77 -0
  157. package/dist/helpers/isFilled.cjs.map +1 -0
  158. package/dist/helpers/isFilled.d.ts +191 -0
  159. package/dist/helpers/isFilled.js +77 -0
  160. package/dist/helpers/isFilled.js.map +1 -0
  161. package/dist/helpers/mapSliceZone.cjs +42 -0
  162. package/dist/helpers/mapSliceZone.cjs.map +1 -0
  163. package/dist/helpers/mapSliceZone.d.ts +136 -0
  164. package/dist/helpers/mapSliceZone.js +42 -0
  165. package/dist/helpers/mapSliceZone.js.map +1 -0
  166. package/dist/index.cjs +94 -3880
  167. package/dist/index.cjs.map +1 -1
  168. package/dist/index.d.ts +129 -4349
  169. package/dist/index.js +99 -0
  170. package/dist/index.js.map +1 -0
  171. package/dist/isRepositoryEndpoint.cjs +12 -0
  172. package/dist/isRepositoryEndpoint.cjs.map +1 -0
  173. package/dist/isRepositoryEndpoint.d.ts +10 -0
  174. package/dist/isRepositoryEndpoint.js +12 -0
  175. package/dist/isRepositoryEndpoint.js.map +1 -0
  176. package/dist/isRepositoryName.cjs +7 -0
  177. package/dist/isRepositoryName.cjs.map +1 -0
  178. package/dist/isRepositoryName.d.ts +9 -0
  179. package/dist/isRepositoryName.js +7 -0
  180. package/dist/isRepositoryName.js.map +1 -0
  181. package/dist/lib/appendFilters.cjs +11 -0
  182. package/dist/lib/appendFilters.cjs.map +1 -0
  183. package/dist/lib/appendFilters.d.ts +18 -0
  184. package/dist/lib/appendFilters.js +11 -0
  185. package/dist/lib/appendFilters.js.map +1 -0
  186. package/dist/lib/castArray.cjs +7 -0
  187. package/dist/lib/castArray.cjs.map +1 -0
  188. package/dist/lib/castArray.d.ts +12 -0
  189. package/dist/lib/castArray.js +7 -0
  190. package/dist/lib/castArray.js.map +1 -0
  191. package/dist/lib/castThunk.cjs +7 -0
  192. package/dist/lib/castThunk.cjs.map +1 -0
  193. package/dist/lib/castThunk.d.ts +11 -0
  194. package/dist/lib/castThunk.js +7 -0
  195. package/dist/lib/castThunk.js.map +1 -0
  196. package/dist/lib/devMsg.cjs +8 -0
  197. package/dist/lib/devMsg.cjs.map +1 -0
  198. package/dist/lib/devMsg.d.ts +16 -0
  199. package/dist/lib/devMsg.js +8 -0
  200. package/dist/lib/devMsg.js.map +1 -0
  201. package/dist/lib/escapeHTML.cjs +43 -0
  202. package/dist/lib/escapeHTML.cjs.map +1 -0
  203. package/dist/lib/escapeHTML.d.ts +1 -0
  204. package/dist/lib/escapeHTML.js +43 -0
  205. package/dist/lib/escapeHTML.js.map +1 -0
  206. package/dist/lib/everyTagFilter.cjs +9 -0
  207. package/dist/lib/everyTagFilter.cjs.map +1 -0
  208. package/dist/lib/everyTagFilter.d.ts +9 -0
  209. package/dist/lib/everyTagFilter.js +9 -0
  210. package/dist/lib/everyTagFilter.js.map +1 -0
  211. package/dist/lib/findMasterRef.cjs +8 -0
  212. package/dist/lib/findMasterRef.cjs.map +1 -0
  213. package/dist/lib/findMasterRef.d.ts +11 -0
  214. package/dist/lib/findMasterRef.js +8 -0
  215. package/dist/lib/findMasterRef.js.map +1 -0
  216. package/dist/lib/findRef.cjs +12 -0
  217. package/dist/lib/findRef.cjs.map +1 -0
  218. package/dist/lib/findRef.d.ts +14 -0
  219. package/dist/lib/findRef.js +12 -0
  220. package/dist/lib/findRef.js.map +1 -0
  221. package/dist/lib/findRefByID.cjs +8 -0
  222. package/dist/lib/findRefByID.cjs.map +1 -0
  223. package/dist/lib/findRefByID.d.ts +12 -0
  224. package/dist/lib/findRefByID.js +8 -0
  225. package/dist/lib/findRefByID.js.map +1 -0
  226. package/dist/lib/findRefByLabel.cjs +8 -0
  227. package/dist/lib/findRefByLabel.cjs.map +1 -0
  228. package/dist/lib/findRefByLabel.d.ts +12 -0
  229. package/dist/lib/findRefByLabel.js +8 -0
  230. package/dist/lib/findRefByLabel.js.map +1 -0
  231. package/dist/lib/getOptionalLinkProperties.cjs +14 -0
  232. package/dist/lib/getOptionalLinkProperties.cjs.map +1 -0
  233. package/dist/lib/getOptionalLinkProperties.d.ts +12 -0
  234. package/dist/lib/getOptionalLinkProperties.js +14 -0
  235. package/dist/lib/getOptionalLinkProperties.js.map +1 -0
  236. package/dist/lib/getPreviewCookie.cjs +21 -0
  237. package/dist/lib/getPreviewCookie.cjs.map +1 -0
  238. package/dist/lib/getPreviewCookie.d.ts +9 -0
  239. package/dist/lib/getPreviewCookie.js +21 -0
  240. package/dist/lib/getPreviewCookie.js.map +1 -0
  241. package/dist/lib/isInternalURL.cjs +9 -0
  242. package/dist/lib/isInternalURL.cjs.map +1 -0
  243. package/dist/lib/isInternalURL.d.ts +8 -0
  244. package/dist/lib/isInternalURL.js +9 -0
  245. package/dist/lib/isInternalURL.js.map +1 -0
  246. package/dist/lib/isMigrationValue.cjs +24 -0
  247. package/dist/lib/isMigrationValue.cjs.map +1 -0
  248. package/dist/lib/isMigrationValue.d.ts +71 -0
  249. package/dist/lib/isMigrationValue.js +24 -0
  250. package/dist/lib/isMigrationValue.js.map +1 -0
  251. package/dist/lib/isValue.cjs +53 -0
  252. package/dist/lib/isValue.cjs.map +1 -0
  253. package/dist/lib/isValue.d.ts +78 -0
  254. package/dist/lib/isValue.js +53 -0
  255. package/dist/lib/isValue.js.map +1 -0
  256. package/dist/lib/minifyGraphQLQuery.cjs +7 -0
  257. package/dist/lib/minifyGraphQLQuery.cjs.map +1 -0
  258. package/dist/lib/minifyGraphQLQuery.d.ts +8 -0
  259. package/dist/lib/minifyGraphQLQuery.js +7 -0
  260. package/dist/lib/minifyGraphQLQuery.js.map +1 -0
  261. package/dist/lib/pLimit.cjs +48 -0
  262. package/dist/lib/pLimit.cjs.map +1 -0
  263. package/dist/lib/pLimit.d.ts +22 -0
  264. package/dist/lib/pLimit.js +48 -0
  265. package/dist/lib/pLimit.js.map +1 -0
  266. package/dist/lib/request.cjs +41 -0
  267. package/dist/lib/request.cjs.map +1 -0
  268. package/dist/lib/request.d.ts +73 -0
  269. package/dist/lib/request.js +41 -0
  270. package/dist/lib/request.js.map +1 -0
  271. package/dist/lib/resolveMigrationDocumentData.cjs +132 -0
  272. package/dist/lib/resolveMigrationDocumentData.cjs.map +1 -0
  273. package/dist/lib/resolveMigrationDocumentData.d.ts +54 -0
  274. package/dist/lib/resolveMigrationDocumentData.js +132 -0
  275. package/dist/lib/resolveMigrationDocumentData.js.map +1 -0
  276. package/dist/lib/serializerHelpers.cjs +113 -0
  277. package/dist/lib/serializerHelpers.cjs.map +1 -0
  278. package/dist/lib/serializerHelpers.d.ts +9 -0
  279. package/dist/lib/serializerHelpers.js +113 -0
  280. package/dist/lib/serializerHelpers.js.map +1 -0
  281. package/dist/lib/someTagsFilter.cjs +9 -0
  282. package/dist/lib/someTagsFilter.cjs.map +1 -0
  283. package/dist/lib/someTagsFilter.d.ts +9 -0
  284. package/dist/lib/someTagsFilter.js +9 -0
  285. package/dist/lib/someTagsFilter.js.map +1 -0
  286. package/dist/lib/throttledLog.cjs +17 -0
  287. package/dist/lib/throttledLog.cjs.map +1 -0
  288. package/dist/lib/throttledLog.d.ts +15 -0
  289. package/dist/lib/throttledLog.js +17 -0
  290. package/dist/lib/throttledLog.js.map +1 -0
  291. package/dist/lib/typeFilter.cjs +8 -0
  292. package/dist/lib/typeFilter.cjs.map +1 -0
  293. package/dist/lib/typeFilter.d.ts +8 -0
  294. package/dist/lib/typeFilter.js +8 -0
  295. package/dist/lib/typeFilter.js.map +1 -0
  296. package/dist/lib/validateAssetMetadata.cjs +28 -0
  297. package/dist/lib/validateAssetMetadata.cjs.map +1 -0
  298. package/dist/lib/validateAssetMetadata.d.ts +10 -0
  299. package/dist/lib/validateAssetMetadata.js +28 -0
  300. package/dist/lib/validateAssetMetadata.js.map +1 -0
  301. package/dist/package.json.cjs +7 -0
  302. package/dist/package.json.cjs.map +1 -0
  303. package/dist/package.json.js +7 -0
  304. package/dist/package.json.js.map +1 -0
  305. package/dist/richtext/asText.cjs +13 -0
  306. package/dist/richtext/asText.cjs.map +1 -0
  307. package/dist/richtext/asText.d.ts +12 -0
  308. package/dist/richtext/asText.js +13 -0
  309. package/dist/richtext/asText.js.map +1 -0
  310. package/dist/richtext/asTree.cjs +123 -0
  311. package/dist/richtext/asTree.cjs.map +1 -0
  312. package/dist/richtext/asTree.d.ts +14 -0
  313. package/dist/richtext/asTree.js +123 -0
  314. package/dist/richtext/asTree.js.map +1 -0
  315. package/dist/richtext/composeSerializers.cjs +17 -0
  316. package/dist/richtext/composeSerializers.cjs.map +1 -0
  317. package/dist/richtext/composeSerializers.d.ts +16 -0
  318. package/dist/richtext/composeSerializers.js +17 -0
  319. package/dist/richtext/composeSerializers.js.map +1 -0
  320. package/dist/richtext/index.d.ts +7 -78
  321. package/dist/richtext/serialize.cjs +19 -0
  322. package/dist/richtext/serialize.cjs.map +1 -0
  323. package/dist/richtext/serialize.d.ts +19 -0
  324. package/dist/richtext/serialize.js +19 -0
  325. package/dist/richtext/serialize.js.map +1 -0
  326. package/dist/richtext/types.cjs +11 -0
  327. package/dist/richtext/types.cjs.map +1 -0
  328. package/dist/richtext/types.d.ts +71 -0
  329. package/dist/richtext/types.js +11 -0
  330. package/dist/richtext/types.js.map +1 -0
  331. package/dist/richtext/wrapMapSerializer.cjs +24 -0
  332. package/dist/richtext/wrapMapSerializer.cjs.map +1 -0
  333. package/dist/richtext/wrapMapSerializer.d.ts +15 -0
  334. package/dist/richtext/wrapMapSerializer.js +24 -0
  335. package/dist/richtext/wrapMapSerializer.js.map +1 -0
  336. package/dist/richtext.cjs +15 -0
  337. package/dist/richtext.cjs.map +1 -0
  338. package/dist/richtext.js +15 -0
  339. package/dist/richtext.js.map +1 -0
  340. package/dist/types/api/asset/asset.d.ts +177 -0
  341. package/dist/types/api/asset/tag.d.ts +53 -0
  342. package/dist/types/api/integration.d.ts +28 -0
  343. package/dist/types/api/migration/document.d.ts +60 -0
  344. package/dist/types/api/query.d.ts +43 -0
  345. package/dist/types/api/ref.d.ts +32 -0
  346. package/dist/types/api/release.d.ts +11 -0
  347. package/dist/types/api/repository.d.ts +109 -0
  348. package/dist/types/api/tags.d.ts +9 -0
  349. package/dist/types/migration/Asset.cjs +30 -0
  350. package/dist/types/migration/Asset.cjs.map +1 -0
  351. package/dist/types/migration/Asset.d.ts +108 -0
  352. package/dist/types/migration/Asset.js +30 -0
  353. package/dist/types/migration/Asset.js.map +1 -0
  354. package/dist/types/migration/ContentRelationship.d.ts +16 -0
  355. package/dist/types/migration/Document.cjs +44 -0
  356. package/dist/types/migration/Document.cjs.map +1 -0
  357. package/dist/types/migration/Document.d.ts +94 -0
  358. package/dist/types/migration/Document.js +44 -0
  359. package/dist/types/migration/Document.js.map +1 -0
  360. package/dist/types/migration/Link.d.ts +19 -0
  361. package/dist/types/model/boolean.d.ts +15 -0
  362. package/dist/types/model/color.d.ts +13 -0
  363. package/dist/types/model/contentRelationship.d.ts +53 -0
  364. package/dist/types/model/customType.d.ts +48 -0
  365. package/dist/types/model/date.d.ts +14 -0
  366. package/dist/types/model/embed.d.ts +13 -0
  367. package/dist/types/model/geoPoint.d.ts +12 -0
  368. package/dist/types/model/group.d.ts +23 -0
  369. package/dist/types/model/image.d.ts +31 -0
  370. package/dist/types/model/integration.d.ts +14 -0
  371. package/dist/types/model/keyText.d.ts +13 -0
  372. package/dist/types/model/link.cjs +9 -0
  373. package/dist/types/model/link.cjs.map +1 -0
  374. package/dist/types/model/link.d.ts +28 -0
  375. package/dist/types/model/link.js +9 -0
  376. package/dist/types/model/link.js.map +1 -0
  377. package/dist/types/model/linkToMedia.d.ts +17 -0
  378. package/dist/types/model/number.d.ts +15 -0
  379. package/dist/types/model/range.d.ts +14 -0
  380. package/dist/types/model/richText.d.ts +37 -0
  381. package/dist/types/model/select.d.ts +18 -0
  382. package/dist/types/model/separator.d.ts +10 -0
  383. package/dist/types/model/sharedSlice.d.ts +16 -0
  384. package/dist/types/model/sharedSliceVariation.d.ts +19 -0
  385. package/dist/types/model/slice.cjs +8 -0
  386. package/dist/types/model/slice.cjs.map +1 -0
  387. package/dist/types/model/slice.d.ts +33 -0
  388. package/dist/types/model/slice.js +8 -0
  389. package/dist/types/model/slice.js.map +1 -0
  390. package/dist/types/model/sliceZone.cjs +8 -0
  391. package/dist/types/model/sliceZone.cjs.map +1 -0
  392. package/dist/types/model/sliceZone.d.ts +41 -0
  393. package/dist/types/model/sliceZone.js +8 -0
  394. package/dist/types/model/sliceZone.js.map +1 -0
  395. package/dist/types/model/table.d.ts +12 -0
  396. package/dist/types/model/timestamp.d.ts +14 -0
  397. package/dist/types/model/title.d.ts +7 -0
  398. package/dist/types/model/types.cjs +39 -0
  399. package/dist/types/model/types.cjs.map +1 -0
  400. package/dist/types/model/types.d.ts +76 -0
  401. package/dist/types/model/types.js +39 -0
  402. package/dist/types/model/types.js.map +1 -0
  403. package/dist/types/model/uid.d.ts +13 -0
  404. package/dist/types/value/boolean.d.ts +6 -0
  405. package/dist/types/value/color.d.ts +9 -0
  406. package/dist/types/value/contentRelationship.d.ts +31 -0
  407. package/dist/types/value/date.d.ts +9 -0
  408. package/dist/types/value/document.d.ts +114 -0
  409. package/dist/types/value/embed.cjs +10 -0
  410. package/dist/types/value/embed.cjs.map +1 -0
  411. package/dist/types/value/embed.d.ts +168 -0
  412. package/dist/types/value/embed.js +10 -0
  413. package/dist/types/value/embed.js.map +1 -0
  414. package/dist/types/value/geoPoint.d.ts +12 -0
  415. package/dist/types/value/group.d.ts +13 -0
  416. package/dist/types/value/image.d.ts +47 -0
  417. package/dist/types/value/integration.d.ts +16 -0
  418. package/dist/types/value/keyText.d.ts +9 -0
  419. package/dist/types/value/link.cjs +10 -0
  420. package/dist/types/value/link.cjs.map +1 -0
  421. package/dist/types/value/link.d.ts +68 -0
  422. package/dist/types/value/link.js +10 -0
  423. package/dist/types/value/link.js.map +1 -0
  424. package/dist/types/value/linkToMedia.d.ts +28 -0
  425. package/dist/types/value/number.d.ts +9 -0
  426. package/dist/types/value/richText.cjs +25 -0
  427. package/dist/types/value/richText.cjs.map +1 -0
  428. package/dist/types/value/richText.d.ts +215 -0
  429. package/dist/types/value/richText.js +25 -0
  430. package/dist/types/value/richText.js.map +1 -0
  431. package/dist/types/value/select.d.ts +10 -0
  432. package/dist/types/value/sharedSlice.d.ts +11 -0
  433. package/dist/types/value/sharedSliceVariation.d.ts +10 -0
  434. package/dist/types/value/slice.d.ts +13 -0
  435. package/dist/types/value/sliceZone.d.ts +12 -0
  436. package/dist/types/value/table.d.ts +91 -0
  437. package/dist/types/value/timestamp.d.ts +8 -0
  438. package/dist/types/value/title.d.ts +12 -0
  439. package/dist/types/value/types.d.ts +58 -0
  440. package/dist/types/webhook/apiUpdate.d.ts +52 -0
  441. package/dist/types/webhook/testTrigger.d.ts +9 -0
  442. package/dist/types/webhook/types.cjs +8 -0
  443. package/dist/types/webhook/types.cjs.map +1 -0
  444. package/dist/types/webhook/types.d.ts +18 -0
  445. package/dist/types/webhook/types.js +8 -0
  446. package/dist/types/webhook/types.js.map +1 -0
  447. package/package.json +34 -11
  448. package/src/WriteClient.ts +21 -32
  449. package/src/index.ts +1 -0
  450. package/src/types/model/contentRelationship.ts +1 -0
  451. package/dist/index.d.cts +0 -4424
  452. package/dist/index.d.mts +0 -4424
  453. package/dist/index.mjs +0 -3837
  454. package/dist/index.mjs.map +0 -1
  455. package/dist/richtext/index.cjs +0 -244
  456. package/dist/richtext/index.cjs.map +0 -1
  457. package/dist/richtext/index.d.cts +0 -78
  458. package/dist/richtext/index.d.mts +0 -78
  459. package/dist/richtext/index.mjs +0 -237
  460. package/dist/richtext/index.mjs.map +0 -1
  461. package/dist/shared/client.TSGr56lO.d.cts +0 -899
  462. package/dist/shared/client.TSGr56lO.d.mts +0 -899
  463. package/dist/shared/client.TSGr56lO.d.ts +0 -899
@@ -0,0 +1,11 @@
1
+ import { PrismicError } from "./PrismicError.js";
2
+ type ForbiddenErrorRepositoryAPIResponse = {
3
+ type: string;
4
+ message: string;
5
+ };
6
+ type ForbiddenErrorQueryAPIResponse = {
7
+ error: string;
8
+ };
9
+ export declare class ForbiddenError<TResponse = ForbiddenErrorRepositoryAPIResponse | ForbiddenErrorQueryAPIResponse> extends PrismicError<TResponse> {
10
+ }
11
+ export {};
@@ -0,0 +1,7 @@
1
+ import { PrismicError } from "./PrismicError.js";
2
+ class ForbiddenError extends PrismicError {
3
+ }
4
+ export {
5
+ ForbiddenError
6
+ };
7
+ //# sourceMappingURL=ForbiddenError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ForbiddenError.js","sources":["../../../src/errors/ForbiddenError.ts"],"sourcesContent":["import { PrismicError } from \"./PrismicError\"\n\ntype ForbiddenErrorRepositoryAPIResponse = {\n\ttype: string\n\tmessage: string\n}\n\ntype ForbiddenErrorQueryAPIResponse = {\n\terror: string\n}\n\nexport class ForbiddenError<\n\tTResponse =\n\t\t| ForbiddenErrorRepositoryAPIResponse\n\t\t| ForbiddenErrorQueryAPIResponse,\n> extends PrismicError<TResponse> {}\n"],"names":[],"mappings":";AAWM,MAAO,uBAIH,aAAuB;AAAG;"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const PrismicError = require("./PrismicError.cjs");
4
+ class InvalidDataError extends PrismicError.PrismicError {
5
+ }
6
+ exports.InvalidDataError = InvalidDataError;
7
+ //# sourceMappingURL=InvalidDataError.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvalidDataError.cjs","sources":["../../../src/errors/InvalidDataError.ts"],"sourcesContent":["import { PrismicError } from \"./PrismicError\"\n\nexport class InvalidDataError<\n\tTResponse = undefined,\n> extends PrismicError<TResponse> {}\n"],"names":["PrismicError"],"mappings":";;;AAEM,MAAO,yBAEHA,aAAAA,aAAuB;AAAG;;"}
@@ -0,0 +1,3 @@
1
+ import { PrismicError } from "./PrismicError.js";
2
+ export declare class InvalidDataError<TResponse = undefined> extends PrismicError<TResponse> {
3
+ }
@@ -0,0 +1,7 @@
1
+ import { PrismicError } from "./PrismicError.js";
2
+ class InvalidDataError extends PrismicError {
3
+ }
4
+ export {
5
+ InvalidDataError
6
+ };
7
+ //# sourceMappingURL=InvalidDataError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InvalidDataError.js","sources":["../../../src/errors/InvalidDataError.ts"],"sourcesContent":["import { PrismicError } from \"./PrismicError\"\n\nexport class InvalidDataError<\n\tTResponse = undefined,\n> extends PrismicError<TResponse> {}\n"],"names":[],"mappings":";AAEM,MAAO,yBAEH,aAAuB;AAAG;"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const PrismicError = require("./PrismicError.cjs");
4
+ class NotFoundError extends PrismicError.PrismicError {
5
+ }
6
+ exports.NotFoundError = NotFoundError;
7
+ //# sourceMappingURL=NotFoundError.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotFoundError.cjs","sources":["../../../src/errors/NotFoundError.ts"],"sourcesContent":["import { PrismicError } from \"./PrismicError\"\n\nexport class NotFoundError<\n\tTResponse = undefined,\n> extends PrismicError<TResponse> {}\n"],"names":["PrismicError"],"mappings":";;;AAEM,MAAO,sBAEHA,aAAAA,aAAuB;AAAG;;"}
@@ -0,0 +1,3 @@
1
+ import { PrismicError } from "./PrismicError.js";
2
+ export declare class NotFoundError<TResponse = undefined> extends PrismicError<TResponse> {
3
+ }
@@ -0,0 +1,7 @@
1
+ import { PrismicError } from "./PrismicError.js";
2
+ class NotFoundError extends PrismicError {
3
+ }
4
+ export {
5
+ NotFoundError
6
+ };
7
+ //# sourceMappingURL=NotFoundError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotFoundError.js","sources":["../../../src/errors/NotFoundError.ts"],"sourcesContent":["import { PrismicError } from \"./PrismicError\"\n\nexport class NotFoundError<\n\tTResponse = undefined,\n> extends PrismicError<TResponse> {}\n"],"names":[],"mappings":";AAEM,MAAO,sBAEH,aAAuB;AAAG;"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const PrismicError = require("./PrismicError.cjs");
4
+ class ParsingError extends PrismicError.PrismicError {
5
+ }
6
+ exports.ParsingError = ParsingError;
7
+ //# sourceMappingURL=ParsingError.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ParsingError.cjs","sources":["../../../src/errors/ParsingError.ts"],"sourcesContent":["import { PrismicError } from \"./PrismicError\"\n\ntype ParsingErrorAPIResponse = {\n\ttype: \"parsing-error\"\n\tmessage: string\n\tpos: {\n\t\tline: number\n\t\tcolumn: number\n\t\tid: number\n\t\tlocation: string\n\t}\n}\n\nexport class ParsingError<\n\tTResponse = ParsingErrorAPIResponse,\n> extends PrismicError<TResponse> {}\n"],"names":["PrismicError"],"mappings":";;;AAaM,MAAO,qBAEHA,aAAAA,aAAuB;AAAG;;"}
@@ -0,0 +1,14 @@
1
+ import { PrismicError } from "./PrismicError.js";
2
+ type ParsingErrorAPIResponse = {
3
+ type: "parsing-error";
4
+ message: string;
5
+ pos: {
6
+ line: number;
7
+ column: number;
8
+ id: number;
9
+ location: string;
10
+ };
11
+ };
12
+ export declare class ParsingError<TResponse = ParsingErrorAPIResponse> extends PrismicError<TResponse> {
13
+ }
14
+ export {};
@@ -0,0 +1,7 @@
1
+ import { PrismicError } from "./PrismicError.js";
2
+ class ParsingError extends PrismicError {
3
+ }
4
+ export {
5
+ ParsingError
6
+ };
7
+ //# sourceMappingURL=ParsingError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ParsingError.js","sources":["../../../src/errors/ParsingError.ts"],"sourcesContent":["import { PrismicError } from \"./PrismicError\"\n\ntype ParsingErrorAPIResponse = {\n\ttype: \"parsing-error\"\n\tmessage: string\n\tpos: {\n\t\tline: number\n\t\tcolumn: number\n\t\tid: number\n\t\tlocation: string\n\t}\n}\n\nexport class ParsingError<\n\tTResponse = ParsingErrorAPIResponse,\n> extends PrismicError<TResponse> {}\n"],"names":[],"mappings":";AAaM,MAAO,qBAEH,aAAuB;AAAG;"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const ForbiddenError = require("./ForbiddenError.cjs");
4
+ class PreviewTokenExpiredError extends ForbiddenError.ForbiddenError {
5
+ }
6
+ exports.PreviewTokenExpiredError = PreviewTokenExpiredError;
7
+ //# sourceMappingURL=PreviewTokenExpired.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PreviewTokenExpired.cjs","sources":["../../../src/errors/PreviewTokenExpired.ts"],"sourcesContent":["import { ForbiddenError } from \"./ForbiddenError\"\n\ntype PreviewTokenExpiredErrorAPIResponse = {\n\ttype: \"api_security_error\"\n\tmessage: string\n}\n\n// This error extends `ForbiddenError` for backwards compatibility.\n// TODO: Extend this error from `PrismicError` in v8.\nexport class PreviewTokenExpiredError<\n\tTResponse = PreviewTokenExpiredErrorAPIResponse,\n> extends ForbiddenError<TResponse> {}\n"],"names":["ForbiddenError"],"mappings":";;;AASM,MAAO,iCAEHA,eAAAA,eAAyB;AAAG;;"}
@@ -0,0 +1,8 @@
1
+ import { ForbiddenError } from "./ForbiddenError.js";
2
+ type PreviewTokenExpiredErrorAPIResponse = {
3
+ type: "api_security_error";
4
+ message: string;
5
+ };
6
+ export declare class PreviewTokenExpiredError<TResponse = PreviewTokenExpiredErrorAPIResponse> extends ForbiddenError<TResponse> {
7
+ }
8
+ export {};
@@ -0,0 +1,7 @@
1
+ import { ForbiddenError } from "./ForbiddenError.js";
2
+ class PreviewTokenExpiredError extends ForbiddenError {
3
+ }
4
+ export {
5
+ PreviewTokenExpiredError
6
+ };
7
+ //# sourceMappingURL=PreviewTokenExpired.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PreviewTokenExpired.js","sources":["../../../src/errors/PreviewTokenExpired.ts"],"sourcesContent":["import { ForbiddenError } from \"./ForbiddenError\"\n\ntype PreviewTokenExpiredErrorAPIResponse = {\n\ttype: \"api_security_error\"\n\tmessage: string\n}\n\n// This error extends `ForbiddenError` for backwards compatibility.\n// TODO: Extend this error from `PrismicError` in v8.\nexport class PreviewTokenExpiredError<\n\tTResponse = PreviewTokenExpiredErrorAPIResponse,\n> extends ForbiddenError<TResponse> {}\n"],"names":[],"mappings":";AASM,MAAO,iCAEH,eAAyB;AAAG;"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ class PrismicError extends Error {
4
+ url;
5
+ response;
6
+ constructor(message = "An invalid API response was returned", url, response) {
7
+ super(message);
8
+ this.url = url;
9
+ this.response = response;
10
+ }
11
+ }
12
+ exports.PrismicError = PrismicError;
13
+ //# sourceMappingURL=PrismicError.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrismicError.cjs","sources":["../../../src/errors/PrismicError.ts"],"sourcesContent":["export class PrismicError<Response> extends Error {\n\turl?: string\n\tresponse: Response\n\n\tconstructor(\n\t\tmessage = \"An invalid API response was returned\",\n\t\turl: string | undefined,\n\t\tresponse: Response,\n\t) {\n\t\tsuper(message)\n\n\t\tthis.url = url\n\t\tthis.response = response\n\t}\n}\n"],"names":[],"mappings":";;AAAM,MAAO,qBAA+B,MAAK;AAAA,EAChD;AAAA,EACA;AAAA,EAEA,YACC,UAAU,wCACV,KACA,UAAkB;AAElB,UAAM,OAAO;AAEb,SAAK,MAAM;AACX,SAAK,WAAW;AAAA,EACjB;AACA;;"}
@@ -0,0 +1,5 @@
1
+ export declare class PrismicError<Response> extends Error {
2
+ url?: string;
3
+ response: Response;
4
+ constructor(message: string | undefined, url: string | undefined, response: Response);
5
+ }
@@ -0,0 +1,13 @@
1
+ class PrismicError extends Error {
2
+ url;
3
+ response;
4
+ constructor(message = "An invalid API response was returned", url, response) {
5
+ super(message);
6
+ this.url = url;
7
+ this.response = response;
8
+ }
9
+ }
10
+ export {
11
+ PrismicError
12
+ };
13
+ //# sourceMappingURL=PrismicError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PrismicError.js","sources":["../../../src/errors/PrismicError.ts"],"sourcesContent":["export class PrismicError<Response> extends Error {\n\turl?: string\n\tresponse: Response\n\n\tconstructor(\n\t\tmessage = \"An invalid API response was returned\",\n\t\turl: string | undefined,\n\t\tresponse: Response,\n\t) {\n\t\tsuper(message)\n\n\t\tthis.url = url\n\t\tthis.response = response\n\t}\n}\n"],"names":[],"mappings":"AAAM,MAAO,qBAA+B,MAAK;AAAA,EAChD;AAAA,EACA;AAAA,EAEA,YACC,UAAU,wCACV,KACA,UAAkB;AAElB,UAAM,OAAO;AAEb,SAAK,MAAM;AACX,SAAK,WAAW;AAAA,EACjB;AACA;"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const ForbiddenError = require("./ForbiddenError.cjs");
4
+ class RefExpiredError extends ForbiddenError.ForbiddenError {
5
+ }
6
+ exports.RefExpiredError = RefExpiredError;
7
+ //# sourceMappingURL=RefExpiredError.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RefExpiredError.cjs","sources":["../../../src/errors/RefExpiredError.ts"],"sourcesContent":["import { ForbiddenError } from \"./ForbiddenError\"\n\ntype RefExpiredErrorAPIResponse = {\n\ttype: \"api_validation_error\"\n\tmessage: string\n}\n\n// This error extends `ForbiddenError` for backwards compatibility. Before the\n// API started returning 410 for expired refs, it returnd 403, which threw a\n// `ForbiddenError`.\n// TODO: Extend this error from `PrismicError` in v8.\nexport class RefExpiredError<\n\tTResponse = RefExpiredErrorAPIResponse,\n> extends ForbiddenError<TResponse> {}\n"],"names":["ForbiddenError"],"mappings":";;;AAWM,MAAO,wBAEHA,eAAAA,eAAyB;AAAG;;"}
@@ -0,0 +1,8 @@
1
+ import { ForbiddenError } from "./ForbiddenError.js";
2
+ type RefExpiredErrorAPIResponse = {
3
+ type: "api_validation_error";
4
+ message: string;
5
+ };
6
+ export declare class RefExpiredError<TResponse = RefExpiredErrorAPIResponse> extends ForbiddenError<TResponse> {
7
+ }
8
+ export {};
@@ -0,0 +1,7 @@
1
+ import { ForbiddenError } from "./ForbiddenError.js";
2
+ class RefExpiredError extends ForbiddenError {
3
+ }
4
+ export {
5
+ RefExpiredError
6
+ };
7
+ //# sourceMappingURL=RefExpiredError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RefExpiredError.js","sources":["../../../src/errors/RefExpiredError.ts"],"sourcesContent":["import { ForbiddenError } from \"./ForbiddenError\"\n\ntype RefExpiredErrorAPIResponse = {\n\ttype: \"api_validation_error\"\n\tmessage: string\n}\n\n// This error extends `ForbiddenError` for backwards compatibility. Before the\n// API started returning 410 for expired refs, it returnd 403, which threw a\n// `ForbiddenError`.\n// TODO: Extend this error from `PrismicError` in v8.\nexport class RefExpiredError<\n\tTResponse = RefExpiredErrorAPIResponse,\n> extends ForbiddenError<TResponse> {}\n"],"names":[],"mappings":";AAWM,MAAO,wBAEH,eAAyB;AAAG;"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const ForbiddenError = require("./ForbiddenError.cjs");
4
+ class RefNotFoundError extends ForbiddenError.ForbiddenError {
5
+ }
6
+ exports.RefNotFoundError = RefNotFoundError;
7
+ //# sourceMappingURL=RefNotFoundError.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RefNotFoundError.cjs","sources":["../../../src/errors/RefNotFoundError.ts"],"sourcesContent":["import { ForbiddenError } from \"./ForbiddenError\"\n\ntype RefNotFoundErrorAPIResponse = {\n\ttype: \"api_notfound_error\"\n\tmessage: string\n}\n\n// This error extends `ForbiddenError` for backwards compatibility. Before the\n// API started returning 404 for not found refs, it returnd 403, which threw a\n// `ForbiddenError`.\n// TODO: Extend this error from `PrismicError` in v8.\nexport class RefNotFoundError<\n\tTResponse = RefNotFoundErrorAPIResponse,\n> extends ForbiddenError<TResponse> {}\n"],"names":["ForbiddenError"],"mappings":";;;AAWM,MAAO,yBAEHA,eAAAA,eAAyB;AAAG;;"}
@@ -0,0 +1,8 @@
1
+ import { ForbiddenError } from "./ForbiddenError.js";
2
+ type RefNotFoundErrorAPIResponse = {
3
+ type: "api_notfound_error";
4
+ message: string;
5
+ };
6
+ export declare class RefNotFoundError<TResponse = RefNotFoundErrorAPIResponse> extends ForbiddenError<TResponse> {
7
+ }
8
+ export {};
@@ -0,0 +1,7 @@
1
+ import { ForbiddenError } from "./ForbiddenError.js";
2
+ class RefNotFoundError extends ForbiddenError {
3
+ }
4
+ export {
5
+ RefNotFoundError
6
+ };
7
+ //# sourceMappingURL=RefNotFoundError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RefNotFoundError.js","sources":["../../../src/errors/RefNotFoundError.ts"],"sourcesContent":["import { ForbiddenError } from \"./ForbiddenError\"\n\ntype RefNotFoundErrorAPIResponse = {\n\ttype: \"api_notfound_error\"\n\tmessage: string\n}\n\n// This error extends `ForbiddenError` for backwards compatibility. Before the\n// API started returning 404 for not found refs, it returnd 403, which threw a\n// `ForbiddenError`.\n// TODO: Extend this error from `PrismicError` in v8.\nexport class RefNotFoundError<\n\tTResponse = RefNotFoundErrorAPIResponse,\n> extends ForbiddenError<TResponse> {}\n"],"names":[],"mappings":";AAWM,MAAO,yBAEH,eAAyB;AAAG;"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const NotFoundError = require("./NotFoundError.cjs");
4
+ class RepositoryNotFoundError extends NotFoundError.NotFoundError {
5
+ }
6
+ exports.RepositoryNotFoundError = RepositoryNotFoundError;
7
+ //# sourceMappingURL=RepositoryNotFoundError.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RepositoryNotFoundError.cjs","sources":["../../../src/errors/RepositoryNotFoundError.ts"],"sourcesContent":["import { NotFoundError } from \"./NotFoundError\"\n\nexport class RepositoryNotFoundError<\n\tTResponse = undefined,\n> extends NotFoundError<TResponse> {}\n"],"names":["NotFoundError"],"mappings":";;;AAEM,MAAO,gCAEHA,cAAAA,cAAwB;AAAG;;"}
@@ -0,0 +1,3 @@
1
+ import { NotFoundError } from "./NotFoundError.js";
2
+ export declare class RepositoryNotFoundError<TResponse = undefined> extends NotFoundError<TResponse> {
3
+ }
@@ -0,0 +1,7 @@
1
+ import { NotFoundError } from "./NotFoundError.js";
2
+ class RepositoryNotFoundError extends NotFoundError {
3
+ }
4
+ export {
5
+ RepositoryNotFoundError
6
+ };
7
+ //# sourceMappingURL=RepositoryNotFoundError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RepositoryNotFoundError.js","sources":["../../../src/errors/RepositoryNotFoundError.ts"],"sourcesContent":["import { NotFoundError } from \"./NotFoundError\"\n\nexport class RepositoryNotFoundError<\n\tTResponse = undefined,\n> extends NotFoundError<TResponse> {}\n"],"names":[],"mappings":";AAEM,MAAO,gCAEH,cAAwB;AAAG;"}
@@ -0,0 +1,247 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const formatValue = (value) => {
4
+ if (Array.isArray(value)) {
5
+ return `[${value.map(formatValue).join(", ")}]`;
6
+ }
7
+ if (typeof value === "string") {
8
+ return `"${value}"`;
9
+ }
10
+ if (value instanceof Date) {
11
+ return `${value.getTime()}`;
12
+ }
13
+ return `${value}`;
14
+ };
15
+ const pathWithArgsFilter = (name) => {
16
+ const fn = (path, ...args) => {
17
+ const formattedArgs = args.map(formatValue).join(", ");
18
+ const joiner = path && args.length ? ", " : "";
19
+ return `[${name}(${path}${joiner}${formattedArgs})]`;
20
+ };
21
+ return fn;
22
+ };
23
+ const pathFilter = (name) => {
24
+ const filterFn = pathWithArgsFilter(name);
25
+ const fn = (path) => {
26
+ return filterFn(path);
27
+ };
28
+ return fn;
29
+ };
30
+ const argsFilter = (name) => {
31
+ const filterFn = pathWithArgsFilter(name);
32
+ const fn = (...args) => {
33
+ return filterFn("", ...args);
34
+ };
35
+ return fn;
36
+ };
37
+ const filter = {
38
+ /**
39
+ * The `at` filter checks that the path matches the described value exactly.
40
+ * It takes a single value for a field or an array (only for tags).
41
+ *
42
+ * {@link https://prismic.io/docs/rest-api-technical-reference#at}
43
+ */
44
+ at: pathWithArgsFilter("at"),
45
+ /**
46
+ * The `not` filter checks that the path doesn't match the provided value
47
+ * exactly. It takes a single value for a field or an array (only for tags).
48
+ *
49
+ * {@link https://prismic.io/docs/rest-api-technical-reference#not}
50
+ */
51
+ not: pathWithArgsFilter("not"),
52
+ /**
53
+ * The `any` filter takes an array of values. It works exactly the same way as
54
+ * the `at` operator, but checks whether the fragment matches any of the
55
+ * values in the array.
56
+ *
57
+ * {@link https://prismic.io/docs/rest-api-technical-reference#any}
58
+ */
59
+ any: pathWithArgsFilter("any"),
60
+ /**
61
+ * The `in` filter is used specifically to retrieve an array of documents by
62
+ * their IDs or UIDs. This filter is much more efficient at this than the any
63
+ * filter.
64
+ *
65
+ * {@link https://prismic.io/docs/rest-api-technical-reference#in}
66
+ */
67
+ in: pathWithArgsFilter("in"),
68
+ /**
69
+ * The `fulltext` filter provides two capabilities:
70
+ *
71
+ * 1. Checking if a certain string is anywhere inside a document (this is what
72
+ * you should use to make your project's search engine feature)
73
+ * 2. Checking if the string is contained inside a specific custom type’s Rich
74
+ * Text or Key Text fragment.
75
+ *
76
+ * {@link https://prismic.io/docs/rest-api-technical-reference#fulltext}
77
+ */
78
+ fulltext: pathWithArgsFilter("fulltext"),
79
+ /**
80
+ * The `has` filter checks whether a fragment has a value. It will return all
81
+ * the documents of the specified type that contain a value for the specified
82
+ * field.
83
+ *
84
+ * {@link https://prismic.io/docs/rest-api-technical-reference#has}
85
+ */
86
+ has: pathFilter("has"),
87
+ /**
88
+ * The `missing` filter checks if a fragment doesn't have a value. It will
89
+ * return all the documents of the specified type that do not contain a value
90
+ * for the specified field.
91
+ *
92
+ * {@link https://prismic.io/docs/rest-api-technical-reference#missing}
93
+ */
94
+ missing: pathFilter("missing"),
95
+ /**
96
+ * The `similar` filter takes the ID of a document, and returns a list of
97
+ * documents with similar content. This allows you to build an automated
98
+ * content discovery feature (for example, a "Related posts" section).
99
+ *
100
+ * {@link https://prismic.io/docs/rest-api-technical-reference#similar}
101
+ */
102
+ similar: argsFilter("similar"),
103
+ /**
104
+ * The `geopoint.near` filter checks that the value in the path is within the
105
+ * radius of the given coordinates.
106
+ *
107
+ * This filter will only work for a geopoint field.
108
+ *
109
+ * {@link https://prismic.io/docs/rest-api-technical-reference#geopointnear}
110
+ */
111
+ geopointNear: pathWithArgsFilter("geopoint.near"),
112
+ /**
113
+ * The `number.lt` filter checks that the value in the number field is less
114
+ * than the value passed into the filter.
115
+ *
116
+ * {@link https://prismic.io/docs/rest-api-technical-reference#numberlessthan}
117
+ */
118
+ numberLessThan: pathWithArgsFilter("number.lt"),
119
+ /**
120
+ * The `number.gt` filter checks that the value in the number field is greater
121
+ * than the value passed into the filter.
122
+ *
123
+ * {@link https://prismic.io/docs/rest-api-technical-reference#numbergreaterthan}
124
+ */
125
+ numberGreaterThan: pathWithArgsFilter("number.gt"),
126
+ /**
127
+ * The `number.inRange` filter checks that the value in the path is within the
128
+ * two values passed into the filter.
129
+ *
130
+ * {@link https://prismic.io/docs/rest-api-technical-reference#numberinrange}
131
+ */
132
+ numberInRange: pathWithArgsFilter("number.inRange"),
133
+ /**
134
+ * The `date.after` filter checks that the value in the path is after the date
135
+ * value passed into the filter.
136
+ *
137
+ * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
138
+ */
139
+ dateAfter: pathWithArgsFilter("date.after"),
140
+ /**
141
+ * The `date.before` filter checks that the value in the path is before the
142
+ * date value passed into the filter.
143
+ *
144
+ * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
145
+ */
146
+ dateBefore: pathWithArgsFilter("date.before"),
147
+ /**
148
+ * The `date.between` filter checks that the value in the path is within the
149
+ * date values passed into the filter.
150
+ *
151
+ * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
152
+ */
153
+ dateBetween: pathWithArgsFilter("date.between"),
154
+ /**
155
+ * The `date.day-of-month` filter checks that the value in the path is equal
156
+ * to the day of the month passed into the filter.
157
+ *
158
+ * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
159
+ */
160
+ dateDayOfMonth: pathWithArgsFilter("date.day-of-month"),
161
+ /**
162
+ * The `date.day-of-month-after` filter checks that the value in the path is
163
+ * after the day of the month passed into the filter.
164
+ *
165
+ * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
166
+ */
167
+ dateDayOfMonthAfter: pathWithArgsFilter("date.day-of-month-after"),
168
+ /**
169
+ * The `date.day-of-month-before` filter checks that the value in the path is
170
+ * before the day of the month passed into the filter.
171
+ *
172
+ * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
173
+ */
174
+ dateDayOfMonthBefore: pathWithArgsFilter("date.day-of-month-before"),
175
+ /**
176
+ * The `date.day-of-week` filter checks that the value in the path is equal to
177
+ * the day of the week passed into the filter.
178
+ *
179
+ * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
180
+ */
181
+ dateDayOfWeek: pathWithArgsFilter("date.day-of-week"),
182
+ /**
183
+ * The `date.day-of-week-after` filter checks that the value in the path is
184
+ * after the day of the week passed into the filter.
185
+ *
186
+ * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
187
+ */
188
+ dateDayOfWeekAfter: pathWithArgsFilter("date.day-of-week-after"),
189
+ /**
190
+ * The date.day-of-week-before filter checks that the value in the path is
191
+ * before the day of the week passed into the filter.
192
+ *
193
+ * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
194
+ */
195
+ dateDayOfWeekBefore: pathWithArgsFilter("date.day-of-week-before"),
196
+ /**
197
+ * The `date.month` filter checks that the value in the path occurs in the
198
+ * month value passed into the filter.
199
+ *
200
+ * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
201
+ */
202
+ dateMonth: pathWithArgsFilter("date.month"),
203
+ /**
204
+ * The `date.month-after` filter checks that the value in the path occurs in
205
+ * any month after the value passed into the filter.
206
+ *
207
+ * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
208
+ */
209
+ dateMonthAfter: pathWithArgsFilter("date.month-after"),
210
+ /**
211
+ * The `date.month-before` filter checks that the value in the path occurs in
212
+ * any month before the value passed into the filter.
213
+ *
214
+ * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
215
+ */
216
+ dateMonthBefore: pathWithArgsFilter("date.month-before"),
217
+ /**
218
+ * The `date.year` filter checks that the value in the path occurs in the year
219
+ * value passed into the filter.
220
+ *
221
+ * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
222
+ */
223
+ dateYear: pathWithArgsFilter("date.year"),
224
+ /**
225
+ * The `date.hour` filter checks that the value in the path occurs within the
226
+ * hour value passed into the filter.
227
+ *
228
+ * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
229
+ */
230
+ dateHour: pathWithArgsFilter("date.hour"),
231
+ /**
232
+ * The `date.hour-after` filter checks that the value in the path occurs after
233
+ * the hour value passed into the filter.
234
+ *
235
+ * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
236
+ */
237
+ dateHourAfter: pathWithArgsFilter("date.hour-after"),
238
+ /**
239
+ * The `date.hour-before` filter checks that the value in the path occurs
240
+ * before the hour value passed into the filter.
241
+ *
242
+ * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}
243
+ */
244
+ dateHourBefore: pathWithArgsFilter("date.hour-before")
245
+ };
246
+ exports.filter = filter;
247
+ //# sourceMappingURL=filter.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filter.cjs","sources":["../../src/filter.ts"],"sourcesContent":["/**\n * Formats the value of a filter element to a stringified version accepted by\n * the Prismic REST API.\n *\n * @param value - Value to format.\n *\n * @returns `value` formatted for the Prismic REST API.\n */\nconst formatValue = (\n\tvalue:\n\t\t| string\n\t\t| number\n\t\t| Date\n\t\t| unknown\n\t\t| (string | number | Date | unknown)[],\n): string => {\n\tif (Array.isArray(value)) {\n\t\treturn `[${value.map(formatValue).join(\", \")}]`\n\t}\n\n\tif (typeof value === \"string\") {\n\t\treturn `\"${value}\"`\n\t}\n\n\tif (value instanceof Date) {\n\t\treturn `${value.getTime()}`\n\t}\n\n\treturn `${value}`\n}\n\n/**\n * Creates a filter builder function for filters with a path and arguments.\n *\n * @typeParam Args - Arguments for the filter.\n *\n * @param name - Name of the filter used in the resulting string.\n *\n * @returns Filter builder function for the given name.\n */\nconst pathWithArgsFilter = <Args extends unknown[]>(name: string) => {\n\t/**\n\t * @param path - Path to the value to be compared.\n\t */\n\tconst fn = (path: string, ...args: Args): string => {\n\t\tconst formattedArgs = args.map(formatValue).join(\", \")\n\t\tconst joiner = path && args.length ? \", \" : \"\"\n\n\t\treturn `[${name}(${path}${joiner}${formattedArgs})]`\n\t}\n\n\treturn fn\n}\n\n/**\n * Creates a filter builder function for filters with only a path.\n *\n * @param name - Name of the filter used in the resulting string.\n *\n * @returns Filter builder function for the given name.\n */\nconst pathFilter = (name: string) => {\n\tconst filterFn = pathWithArgsFilter(name)\n\n\t/**\n\t * @param path - Path for the filter.\n\t */\n\tconst fn = (path: string): string => {\n\t\treturn filterFn(path)\n\t}\n\n\treturn fn\n}\n\n/**\n * Creates a filter builder function for filters with only arguments and no\n * path.\n *\n * @param name - Name of the filter used in the resulting string.\n *\n * @returns Filter builder function for the given name.\n */\nconst argsFilter = <Args extends unknown[]>(name: string) => {\n\tconst filterFn = pathWithArgsFilter<Args>(name)\n\n\t/**\n\t * @param args - Arguments for the filter.\n\t */\n\tconst fn = (...args: Args): string => {\n\t\treturn filterFn(\"\", ...args)\n\t}\n\n\treturn fn\n}\n\nexport const filter = {\n\t/**\n\t * The `at` filter checks that the path matches the described value exactly.\n\t * It takes a single value for a field or an array (only for tags).\n\t *\n\t * {@link https://prismic.io/docs/rest-api-technical-reference#at}\n\t */\n\tat: pathWithArgsFilter<[value: string | number | boolean | Date | string[]]>(\n\t\t\"at\",\n\t),\n\n\t/**\n\t * The `not` filter checks that the path doesn't match the provided value\n\t * exactly. It takes a single value for a field or an array (only for tags).\n\t *\n\t * {@link https://prismic.io/docs/rest-api-technical-reference#not}\n\t */\n\tnot: pathWithArgsFilter<[value: string | number | boolean | Date | string[]]>(\n\t\t\"not\",\n\t),\n\n\t/**\n\t * The `any` filter takes an array of values. It works exactly the same way as\n\t * the `at` operator, but checks whether the fragment matches any of the\n\t * values in the array.\n\t *\n\t * {@link https://prismic.io/docs/rest-api-technical-reference#any}\n\t */\n\tany: pathWithArgsFilter<[values: (string | number | boolean | Date)[]]>(\n\t\t\"any\",\n\t),\n\n\t/**\n\t * The `in` filter is used specifically to retrieve an array of documents by\n\t * their IDs or UIDs. This filter is much more efficient at this than the any\n\t * filter.\n\t *\n\t * {@link https://prismic.io/docs/rest-api-technical-reference#in}\n\t */\n\tin: pathWithArgsFilter<[values: string[]]>(\"in\"),\n\n\t/**\n\t * The `fulltext` filter provides two capabilities:\n\t *\n\t * 1. Checking if a certain string is anywhere inside a document (this is what\n\t * you should use to make your project's search engine feature)\n\t * 2. Checking if the string is contained inside a specific custom type’s Rich\n\t * Text or Key Text fragment.\n\t *\n\t * {@link https://prismic.io/docs/rest-api-technical-reference#fulltext}\n\t */\n\tfulltext: pathWithArgsFilter<[searchTerms: string]>(\"fulltext\"),\n\n\t/**\n\t * The `has` filter checks whether a fragment has a value. It will return all\n\t * the documents of the specified type that contain a value for the specified\n\t * field.\n\t *\n\t * {@link https://prismic.io/docs/rest-api-technical-reference#has}\n\t */\n\thas: pathFilter(\"has\"),\n\n\t/**\n\t * The `missing` filter checks if a fragment doesn't have a value. It will\n\t * return all the documents of the specified type that do not contain a value\n\t * for the specified field.\n\t *\n\t * {@link https://prismic.io/docs/rest-api-technical-reference#missing}\n\t */\n\tmissing: pathFilter(\"missing\"),\n\n\t/**\n\t * The `similar` filter takes the ID of a document, and returns a list of\n\t * documents with similar content. This allows you to build an automated\n\t * content discovery feature (for example, a \"Related posts\" section).\n\t *\n\t * {@link https://prismic.io/docs/rest-api-technical-reference#similar}\n\t */\n\tsimilar: argsFilter<[id: string, value: number]>(\"similar\"),\n\n\t/**\n\t * The `geopoint.near` filter checks that the value in the path is within the\n\t * radius of the given coordinates.\n\t *\n\t * This filter will only work for a geopoint field.\n\t *\n\t * {@link https://prismic.io/docs/rest-api-technical-reference#geopointnear}\n\t */\n\tgeopointNear:\n\t\tpathWithArgsFilter<[latitude: number, longitude: number, radius: number]>(\n\t\t\t\"geopoint.near\",\n\t\t),\n\n\t/**\n\t * The `number.lt` filter checks that the value in the number field is less\n\t * than the value passed into the filter.\n\t *\n\t * {@link https://prismic.io/docs/rest-api-technical-reference#numberlessthan}\n\t */\n\tnumberLessThan: pathWithArgsFilter<[value: number]>(\"number.lt\"),\n\n\t/**\n\t * The `number.gt` filter checks that the value in the number field is greater\n\t * than the value passed into the filter.\n\t *\n\t * {@link https://prismic.io/docs/rest-api-technical-reference#numbergreaterthan}\n\t */\n\tnumberGreaterThan: pathWithArgsFilter<[value: number]>(\"number.gt\"),\n\n\t/**\n\t * The `number.inRange` filter checks that the value in the path is within the\n\t * two values passed into the filter.\n\t *\n\t * {@link https://prismic.io/docs/rest-api-technical-reference#numberinrange}\n\t */\n\tnumberInRange:\n\t\tpathWithArgsFilter<[lowerLimit: number, upperLimit: number]>(\n\t\t\t\"number.inRange\",\n\t\t),\n\n\t/**\n\t * The `date.after` filter checks that the value in the path is after the date\n\t * value passed into the filter.\n\t *\n\t * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n\t */\n\tdateAfter: pathWithArgsFilter<[date: string | number | Date]>(\"date.after\"),\n\n\t/**\n\t * The `date.before` filter checks that the value in the path is before the\n\t * date value passed into the filter.\n\t *\n\t * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n\t */\n\tdateBefore: pathWithArgsFilter<[date: string | number | Date]>(\"date.before\"),\n\n\t/**\n\t * The `date.between` filter checks that the value in the path is within the\n\t * date values passed into the filter.\n\t *\n\t * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n\t */\n\tdateBetween:\n\t\tpathWithArgsFilter<\n\t\t\t[startDate: string | number | Date, endDate: string | number | Date]\n\t\t>(\"date.between\"),\n\n\t/**\n\t * The `date.day-of-month` filter checks that the value in the path is equal\n\t * to the day of the month passed into the filter.\n\t *\n\t * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n\t */\n\tdateDayOfMonth: pathWithArgsFilter<[day: number]>(\"date.day-of-month\"),\n\n\t/**\n\t * The `date.day-of-month-after` filter checks that the value in the path is\n\t * after the day of the month passed into the filter.\n\t *\n\t * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n\t */\n\tdateDayOfMonthAfter: pathWithArgsFilter<[day: number]>(\n\t\t\"date.day-of-month-after\",\n\t),\n\n\t/**\n\t * The `date.day-of-month-before` filter checks that the value in the path is\n\t * before the day of the month passed into the filter.\n\t *\n\t * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n\t */\n\tdateDayOfMonthBefore: pathWithArgsFilter<[day: number]>(\n\t\t\"date.day-of-month-before\",\n\t),\n\n\t/**\n\t * The `date.day-of-week` filter checks that the value in the path is equal to\n\t * the day of the week passed into the filter.\n\t *\n\t * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n\t */\n\tdateDayOfWeek: pathWithArgsFilter<[day: string | number]>(\"date.day-of-week\"),\n\n\t/**\n\t * The `date.day-of-week-after` filter checks that the value in the path is\n\t * after the day of the week passed into the filter.\n\t *\n\t * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n\t */\n\tdateDayOfWeekAfter: pathWithArgsFilter<[day: string | number]>(\n\t\t\"date.day-of-week-after\",\n\t),\n\n\t/**\n\t * The date.day-of-week-before filter checks that the value in the path is\n\t * before the day of the week passed into the filter.\n\t *\n\t * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n\t */\n\tdateDayOfWeekBefore: pathWithArgsFilter<[day: string | number]>(\n\t\t\"date.day-of-week-before\",\n\t),\n\n\t/**\n\t * The `date.month` filter checks that the value in the path occurs in the\n\t * month value passed into the filter.\n\t *\n\t * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n\t */\n\tdateMonth: pathWithArgsFilter<[month: string | number]>(\"date.month\"),\n\n\t/**\n\t * The `date.month-after` filter checks that the value in the path occurs in\n\t * any month after the value passed into the filter.\n\t *\n\t * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n\t */\n\tdateMonthAfter:\n\t\tpathWithArgsFilter<[month: string | number]>(\"date.month-after\"),\n\n\t/**\n\t * The `date.month-before` filter checks that the value in the path occurs in\n\t * any month before the value passed into the filter.\n\t *\n\t * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n\t */\n\tdateMonthBefore:\n\t\tpathWithArgsFilter<[month: string | number]>(\"date.month-before\"),\n\n\t/**\n\t * The `date.year` filter checks that the value in the path occurs in the year\n\t * value passed into the filter.\n\t *\n\t * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n\t */\n\tdateYear: pathWithArgsFilter<[year: number]>(\"date.year\"),\n\n\t/**\n\t * The `date.hour` filter checks that the value in the path occurs within the\n\t * hour value passed into the filter.\n\t *\n\t * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n\t */\n\tdateHour: pathWithArgsFilter<[hour: number]>(\"date.hour\"),\n\n\t/**\n\t * The `date.hour-after` filter checks that the value in the path occurs after\n\t * the hour value passed into the filter.\n\t *\n\t * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n\t */\n\tdateHourAfter: pathWithArgsFilter<[hour: number]>(\"date.hour-after\"),\n\n\t/**\n\t * The `date.hour-before` filter checks that the value in the path occurs\n\t * before the hour value passed into the filter.\n\t *\n\t * {@link https://prismic.io/docs/rest-api-technical-reference#date-filters}\n\t */\n\tdateHourBefore: pathWithArgsFilter<[hour: number]>(\"date.hour-before\"),\n}\n"],"names":[],"mappings":";;AAQA,MAAM,cAAc,CACnB,UAMW;AACX,MAAI,MAAM,QAAQ,KAAK,GAAG;AACzB,WAAO,IAAI,MAAM,IAAI,WAAW,EAAE,KAAK,IAAI,CAAC;AAAA,EAC7C;AAEA,MAAI,OAAO,UAAU,UAAU;AAC9B,WAAO,IAAI,KAAK;AAAA,EACjB;AAEA,MAAI,iBAAiB,MAAM;AAC1B,WAAO,GAAG,MAAM,QAAA,CAAS;AAAA,EAC1B;AAEA,SAAO,GAAG,KAAK;AAChB;AAWA,MAAM,qBAAqB,CAAyB,SAAgB;AAInE,QAAM,KAAK,CAAC,SAAiB,SAAsB;AAClD,UAAM,gBAAgB,KAAK,IAAI,WAAW,EAAE,KAAK,IAAI;AACrD,UAAM,SAAS,QAAQ,KAAK,SAAS,OAAO;AAE5C,WAAO,IAAI,IAAI,IAAI,IAAI,GAAG,MAAM,GAAG,aAAa;AAAA,EACjD;AAEA,SAAO;AACR;AASA,MAAM,aAAa,CAAC,SAAgB;AACnC,QAAM,WAAW,mBAAmB,IAAI;AAKxC,QAAM,KAAK,CAAC,SAAwB;AACnC,WAAO,SAAS,IAAI;AAAA,EACrB;AAEA,SAAO;AACR;AAUA,MAAM,aAAa,CAAyB,SAAgB;AAC3D,QAAM,WAAW,mBAAyB,IAAI;AAK9C,QAAM,KAAK,IAAI,SAAsB;AACpC,WAAO,SAAS,IAAI,GAAG,IAAI;AAAA,EAC5B;AAEA,SAAO;AACR;AAEO,MAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOrB,IAAI,mBACH,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASL,KAAK,mBACJ,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUN,KAAK,mBACJ,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUN,IAAI,mBAAuC,IAAI;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAY/C,UAAU,mBAA0C,UAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAS9D,KAAK,WAAW,KAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASrB,SAAS,WAAW,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAS7B,SAAS,WAAwC,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAU1D,cACC,mBACC,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASjB,gBAAgB,mBAAoC,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQ/D,mBAAmB,mBAAoC,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQlE,eACC,mBACC,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASlB,WAAW,mBAAmD,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQ1E,YAAY,mBAAmD,aAAa;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQ5E,aACC,mBAEE,cAAc;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQjB,gBAAgB,mBAAkC,mBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQrE,qBAAqB,mBACpB,yBAAyB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAS1B,sBAAsB,mBACrB,0BAA0B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAS3B,eAAe,mBAA2C,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQ5E,oBAAoB,mBACnB,wBAAwB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASzB,qBAAqB,mBACpB,yBAAyB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAS1B,WAAW,mBAA6C,YAAY;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQpE,gBACC,mBAA6C,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQhE,iBACC,mBAA6C,mBAAmB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQjE,UAAU,mBAAmC,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQxD,UAAU,mBAAmC,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQxD,eAAe,mBAAmC,iBAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQnE,gBAAgB,mBAAmC,kBAAkB;;;"}