@prismicio/client 7.21.0-alpha.1 → 7.21.0-alpha.2

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 (480) hide show
  1. package/dist/index.cjs +3880 -92
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +4424 -0
  4. package/dist/index.d.mts +4424 -0
  5. package/dist/index.d.ts +4349 -128
  6. package/dist/index.mjs +3837 -0
  7. package/dist/index.mjs.map +1 -0
  8. package/dist/richtext/index.cjs +244 -0
  9. package/dist/richtext/index.cjs.map +1 -0
  10. package/dist/richtext/index.d.cts +78 -0
  11. package/dist/richtext/index.d.mts +78 -0
  12. package/dist/richtext/index.d.ts +78 -7
  13. package/dist/richtext/index.mjs +237 -0
  14. package/dist/richtext/index.mjs.map +1 -0
  15. package/dist/shared/client.TSGr56lO.d.cts +899 -0
  16. package/dist/shared/client.TSGr56lO.d.mts +899 -0
  17. package/dist/shared/client.TSGr56lO.d.ts +899 -0
  18. package/package.json +19 -42
  19. package/src/buildQueryURL.ts +29 -21
  20. package/src/createClient.ts +11 -8
  21. package/src/getRepositoryEndpoint.ts +9 -2
  22. package/src/helpers/asDate.ts +11 -4
  23. package/src/helpers/asHTML.ts +34 -26
  24. package/src/helpers/asImagePixelDensitySrcSet.ts +16 -15
  25. package/src/helpers/asImageSrc.ts +11 -10
  26. package/src/helpers/asImageWidthSrcSet.ts +18 -17
  27. package/src/helpers/asLink.ts +33 -32
  28. package/src/helpers/asLinkAttrs.ts +6 -9
  29. package/src/helpers/asText.ts +20 -10
  30. package/src/helpers/isFilled.ts +15 -14
  31. package/src/helpers/mapSliceZone.ts +10 -10
  32. package/src/index.ts +2 -2
  33. package/src/isRepositoryEndpoint.ts +2 -2
  34. package/src/richtext/asText.ts +5 -5
  35. package/src/richtext/serialize.ts +8 -8
  36. package/src/richtext/types.ts +6 -6
  37. package/src/types/migration/Asset.ts +10 -2
  38. package/src/types/model/types.ts +0 -2
  39. package/dist/Client.cjs +0 -1274
  40. package/dist/Client.cjs.map +0 -1
  41. package/dist/Client.d.ts +0 -981
  42. package/dist/Client.js +0 -1274
  43. package/dist/Client.js.map +0 -1
  44. package/dist/Migration.cjs +0 -315
  45. package/dist/Migration.cjs.map +0 -1
  46. package/dist/Migration.d.ts +0 -213
  47. package/dist/Migration.js +0 -315
  48. package/dist/Migration.js.map +0 -1
  49. package/dist/WriteClient.cjs +0 -560
  50. package/dist/WriteClient.cjs.map +0 -1
  51. package/dist/WriteClient.d.ts +0 -281
  52. package/dist/WriteClient.js +0 -560
  53. package/dist/WriteClient.js.map +0 -1
  54. package/dist/buildQueryURL.cjs +0 -66
  55. package/dist/buildQueryURL.cjs.map +0 -1
  56. package/dist/buildQueryURL.d.ts +0 -209
  57. package/dist/buildQueryURL.js +0 -66
  58. package/dist/buildQueryURL.js.map +0 -1
  59. package/dist/cookie.cjs +0 -5
  60. package/dist/cookie.cjs.map +0 -1
  61. package/dist/cookie.d.ts +0 -5
  62. package/dist/cookie.js +0 -5
  63. package/dist/cookie.js.map +0 -1
  64. package/dist/createClient.cjs +0 -6
  65. package/dist/createClient.cjs.map +0 -1
  66. package/dist/createClient.d.ts +0 -32
  67. package/dist/createClient.js +0 -6
  68. package/dist/createClient.js.map +0 -1
  69. package/dist/createMigration.cjs +0 -6
  70. package/dist/createMigration.cjs.map +0 -1
  71. package/dist/createMigration.d.ts +0 -24
  72. package/dist/createMigration.js +0 -6
  73. package/dist/createMigration.js.map +0 -1
  74. package/dist/createWriteClient.cjs +0 -6
  75. package/dist/createWriteClient.cjs.map +0 -1
  76. package/dist/createWriteClient.d.ts +0 -32
  77. package/dist/createWriteClient.js +0 -6
  78. package/dist/createWriteClient.js.map +0 -1
  79. package/dist/errors/ForbiddenError.cjs +0 -7
  80. package/dist/errors/ForbiddenError.cjs.map +0 -1
  81. package/dist/errors/ForbiddenError.d.ts +0 -11
  82. package/dist/errors/ForbiddenError.js +0 -7
  83. package/dist/errors/ForbiddenError.js.map +0 -1
  84. package/dist/errors/InvalidDataError.cjs +0 -7
  85. package/dist/errors/InvalidDataError.cjs.map +0 -1
  86. package/dist/errors/InvalidDataError.d.ts +0 -3
  87. package/dist/errors/InvalidDataError.js +0 -7
  88. package/dist/errors/InvalidDataError.js.map +0 -1
  89. package/dist/errors/NotFoundError.cjs +0 -7
  90. package/dist/errors/NotFoundError.cjs.map +0 -1
  91. package/dist/errors/NotFoundError.d.ts +0 -3
  92. package/dist/errors/NotFoundError.js +0 -7
  93. package/dist/errors/NotFoundError.js.map +0 -1
  94. package/dist/errors/ParsingError.cjs +0 -7
  95. package/dist/errors/ParsingError.cjs.map +0 -1
  96. package/dist/errors/ParsingError.d.ts +0 -14
  97. package/dist/errors/ParsingError.js +0 -7
  98. package/dist/errors/ParsingError.js.map +0 -1
  99. package/dist/errors/PreviewTokenExpired.cjs +0 -7
  100. package/dist/errors/PreviewTokenExpired.cjs.map +0 -1
  101. package/dist/errors/PreviewTokenExpired.d.ts +0 -8
  102. package/dist/errors/PreviewTokenExpired.js +0 -7
  103. package/dist/errors/PreviewTokenExpired.js.map +0 -1
  104. package/dist/errors/PrismicError.cjs +0 -16
  105. package/dist/errors/PrismicError.cjs.map +0 -1
  106. package/dist/errors/PrismicError.d.ts +0 -5
  107. package/dist/errors/PrismicError.js +0 -16
  108. package/dist/errors/PrismicError.js.map +0 -1
  109. package/dist/errors/RefExpiredError.cjs +0 -7
  110. package/dist/errors/RefExpiredError.cjs.map +0 -1
  111. package/dist/errors/RefExpiredError.d.ts +0 -8
  112. package/dist/errors/RefExpiredError.js +0 -7
  113. package/dist/errors/RefExpiredError.js.map +0 -1
  114. package/dist/errors/RefNotFoundError.cjs +0 -7
  115. package/dist/errors/RefNotFoundError.cjs.map +0 -1
  116. package/dist/errors/RefNotFoundError.d.ts +0 -8
  117. package/dist/errors/RefNotFoundError.js +0 -7
  118. package/dist/errors/RefNotFoundError.js.map +0 -1
  119. package/dist/errors/RepositoryNotFoundError.cjs +0 -7
  120. package/dist/errors/RepositoryNotFoundError.cjs.map +0 -1
  121. package/dist/errors/RepositoryNotFoundError.d.ts +0 -3
  122. package/dist/errors/RepositoryNotFoundError.js +0 -7
  123. package/dist/errors/RepositoryNotFoundError.js.map +0 -1
  124. package/dist/filter.cjs +0 -247
  125. package/dist/filter.cjs.map +0 -1
  126. package/dist/filter.d.ts +0 -209
  127. package/dist/filter.js +0 -247
  128. package/dist/filter.js.map +0 -1
  129. package/dist/getGraphQLEndpoint.cjs +0 -13
  130. package/dist/getGraphQLEndpoint.cjs.map +0 -1
  131. package/dist/getGraphQLEndpoint.d.ts +0 -10
  132. package/dist/getGraphQLEndpoint.js +0 -13
  133. package/dist/getGraphQLEndpoint.js.map +0 -1
  134. package/dist/getRepositoryEndpoint.cjs +0 -13
  135. package/dist/getRepositoryEndpoint.cjs.map +0 -1
  136. package/dist/getRepositoryEndpoint.d.ts +0 -12
  137. package/dist/getRepositoryEndpoint.js +0 -13
  138. package/dist/getRepositoryEndpoint.js.map +0 -1
  139. package/dist/getRepositoryName.cjs +0 -17
  140. package/dist/getRepositoryName.cjs.map +0 -1
  141. package/dist/getRepositoryName.d.ts +0 -12
  142. package/dist/getRepositoryName.js +0 -17
  143. package/dist/getRepositoryName.js.map +0 -1
  144. package/dist/getToolbarSrc.cjs +0 -13
  145. package/dist/getToolbarSrc.cjs.map +0 -1
  146. package/dist/getToolbarSrc.d.ts +0 -34
  147. package/dist/getToolbarSrc.js +0 -13
  148. package/dist/getToolbarSrc.js.map +0 -1
  149. package/dist/helpers/asDate.cjs +0 -14
  150. package/dist/helpers/asDate.cjs.map +0 -1
  151. package/dist/helpers/asDate.d.ts +0 -17
  152. package/dist/helpers/asDate.js +0 -14
  153. package/dist/helpers/asDate.js.map +0 -1
  154. package/dist/helpers/asHTML.cjs +0 -86
  155. package/dist/helpers/asHTML.cjs.map +0 -1
  156. package/dist/helpers/asHTML.d.ts +0 -141
  157. package/dist/helpers/asHTML.js +0 -86
  158. package/dist/helpers/asHTML.js.map +0 -1
  159. package/dist/helpers/asImagePixelDensitySrcSet.cjs +0 -21
  160. package/dist/helpers/asImagePixelDensitySrcSet.cjs.map +0 -1
  161. package/dist/helpers/asImagePixelDensitySrcSet.d.ts +0 -53
  162. package/dist/helpers/asImagePixelDensitySrcSet.js +0 -21
  163. package/dist/helpers/asImagePixelDensitySrcSet.js.map +0 -1
  164. package/dist/helpers/asImageSrc.cjs +0 -13
  165. package/dist/helpers/asImageSrc.cjs.map +0 -1
  166. package/dist/helpers/asImageSrc.d.ts +0 -28
  167. package/dist/helpers/asImageSrc.js +0 -13
  168. package/dist/helpers/asImageSrc.js.map +0 -1
  169. package/dist/helpers/asImageWidthSrcSet.cjs +0 -45
  170. package/dist/helpers/asImageWidthSrcSet.cjs.map +0 -1
  171. package/dist/helpers/asImageWidthSrcSet.d.ts +0 -61
  172. package/dist/helpers/asImageWidthSrcSet.js +0 -45
  173. package/dist/helpers/asImageWidthSrcSet.js.map +0 -1
  174. package/dist/helpers/asLink.cjs +0 -47
  175. package/dist/helpers/asLink.cjs.map +0 -1
  176. package/dist/helpers/asLink.d.ts +0 -77
  177. package/dist/helpers/asLink.js +0 -47
  178. package/dist/helpers/asLink.js.map +0 -1
  179. package/dist/helpers/asLinkAttrs.cjs +0 -28
  180. package/dist/helpers/asLinkAttrs.cjs.map +0 -1
  181. package/dist/helpers/asLinkAttrs.d.ts +0 -50
  182. package/dist/helpers/asLinkAttrs.js +0 -28
  183. package/dist/helpers/asLinkAttrs.js.map +0 -1
  184. package/dist/helpers/asText.cjs +0 -21
  185. package/dist/helpers/asText.cjs.map +0 -1
  186. package/dist/helpers/asText.d.ts +0 -47
  187. package/dist/helpers/asText.js +0 -21
  188. package/dist/helpers/asText.js.map +0 -1
  189. package/dist/helpers/documentToLinkField.cjs +0 -27
  190. package/dist/helpers/documentToLinkField.cjs.map +0 -1
  191. package/dist/helpers/documentToLinkField.d.ts +0 -17
  192. package/dist/helpers/documentToLinkField.js +0 -27
  193. package/dist/helpers/documentToLinkField.js.map +0 -1
  194. package/dist/helpers/isFilled.cjs +0 -77
  195. package/dist/helpers/isFilled.cjs.map +0 -1
  196. package/dist/helpers/isFilled.d.ts +0 -190
  197. package/dist/helpers/isFilled.js +0 -77
  198. package/dist/helpers/isFilled.js.map +0 -1
  199. package/dist/helpers/mapSliceZone.cjs +0 -42
  200. package/dist/helpers/mapSliceZone.cjs.map +0 -1
  201. package/dist/helpers/mapSliceZone.d.ts +0 -136
  202. package/dist/helpers/mapSliceZone.js +0 -42
  203. package/dist/helpers/mapSliceZone.js.map +0 -1
  204. package/dist/index.js +0 -97
  205. package/dist/index.js.map +0 -1
  206. package/dist/isRepositoryEndpoint.cjs +0 -12
  207. package/dist/isRepositoryEndpoint.cjs.map +0 -1
  208. package/dist/isRepositoryEndpoint.d.ts +0 -10
  209. package/dist/isRepositoryEndpoint.js +0 -12
  210. package/dist/isRepositoryEndpoint.js.map +0 -1
  211. package/dist/isRepositoryName.cjs +0 -7
  212. package/dist/isRepositoryName.cjs.map +0 -1
  213. package/dist/isRepositoryName.d.ts +0 -9
  214. package/dist/isRepositoryName.js +0 -7
  215. package/dist/isRepositoryName.js.map +0 -1
  216. package/dist/lib/appendFilters.cjs +0 -11
  217. package/dist/lib/appendFilters.cjs.map +0 -1
  218. package/dist/lib/appendFilters.d.ts +0 -18
  219. package/dist/lib/appendFilters.js +0 -11
  220. package/dist/lib/appendFilters.js.map +0 -1
  221. package/dist/lib/castArray.cjs +0 -7
  222. package/dist/lib/castArray.cjs.map +0 -1
  223. package/dist/lib/castArray.d.ts +0 -12
  224. package/dist/lib/castArray.js +0 -7
  225. package/dist/lib/castArray.js.map +0 -1
  226. package/dist/lib/castThunk.cjs +0 -7
  227. package/dist/lib/castThunk.cjs.map +0 -1
  228. package/dist/lib/castThunk.d.ts +0 -11
  229. package/dist/lib/castThunk.js +0 -7
  230. package/dist/lib/castThunk.js.map +0 -1
  231. package/dist/lib/devMsg.cjs +0 -8
  232. package/dist/lib/devMsg.cjs.map +0 -1
  233. package/dist/lib/devMsg.d.ts +0 -16
  234. package/dist/lib/devMsg.js +0 -8
  235. package/dist/lib/devMsg.js.map +0 -1
  236. package/dist/lib/escapeHTML.cjs +0 -43
  237. package/dist/lib/escapeHTML.cjs.map +0 -1
  238. package/dist/lib/escapeHTML.d.ts +0 -1
  239. package/dist/lib/escapeHTML.js +0 -43
  240. package/dist/lib/escapeHTML.js.map +0 -1
  241. package/dist/lib/everyTagFilter.cjs +0 -9
  242. package/dist/lib/everyTagFilter.cjs.map +0 -1
  243. package/dist/lib/everyTagFilter.d.ts +0 -9
  244. package/dist/lib/everyTagFilter.js +0 -9
  245. package/dist/lib/everyTagFilter.js.map +0 -1
  246. package/dist/lib/findMasterRef.cjs +0 -8
  247. package/dist/lib/findMasterRef.cjs.map +0 -1
  248. package/dist/lib/findMasterRef.d.ts +0 -11
  249. package/dist/lib/findMasterRef.js +0 -8
  250. package/dist/lib/findMasterRef.js.map +0 -1
  251. package/dist/lib/findRef.cjs +0 -12
  252. package/dist/lib/findRef.cjs.map +0 -1
  253. package/dist/lib/findRef.d.ts +0 -14
  254. package/dist/lib/findRef.js +0 -12
  255. package/dist/lib/findRef.js.map +0 -1
  256. package/dist/lib/findRefByID.cjs +0 -8
  257. package/dist/lib/findRefByID.cjs.map +0 -1
  258. package/dist/lib/findRefByID.d.ts +0 -12
  259. package/dist/lib/findRefByID.js +0 -8
  260. package/dist/lib/findRefByID.js.map +0 -1
  261. package/dist/lib/findRefByLabel.cjs +0 -8
  262. package/dist/lib/findRefByLabel.cjs.map +0 -1
  263. package/dist/lib/findRefByLabel.d.ts +0 -12
  264. package/dist/lib/findRefByLabel.js +0 -8
  265. package/dist/lib/findRefByLabel.js.map +0 -1
  266. package/dist/lib/getOptionalLinkProperties.cjs +0 -14
  267. package/dist/lib/getOptionalLinkProperties.cjs.map +0 -1
  268. package/dist/lib/getOptionalLinkProperties.d.ts +0 -12
  269. package/dist/lib/getOptionalLinkProperties.js +0 -14
  270. package/dist/lib/getOptionalLinkProperties.js.map +0 -1
  271. package/dist/lib/getPreviewCookie.cjs +0 -21
  272. package/dist/lib/getPreviewCookie.cjs.map +0 -1
  273. package/dist/lib/getPreviewCookie.d.ts +0 -9
  274. package/dist/lib/getPreviewCookie.js +0 -21
  275. package/dist/lib/getPreviewCookie.js.map +0 -1
  276. package/dist/lib/isInternalURL.cjs +0 -9
  277. package/dist/lib/isInternalURL.cjs.map +0 -1
  278. package/dist/lib/isInternalURL.d.ts +0 -8
  279. package/dist/lib/isInternalURL.js +0 -9
  280. package/dist/lib/isInternalURL.js.map +0 -1
  281. package/dist/lib/isMigrationValue.cjs +0 -24
  282. package/dist/lib/isMigrationValue.cjs.map +0 -1
  283. package/dist/lib/isMigrationValue.d.ts +0 -71
  284. package/dist/lib/isMigrationValue.js +0 -24
  285. package/dist/lib/isMigrationValue.js.map +0 -1
  286. package/dist/lib/isValue.cjs +0 -53
  287. package/dist/lib/isValue.cjs.map +0 -1
  288. package/dist/lib/isValue.d.ts +0 -78
  289. package/dist/lib/isValue.js +0 -53
  290. package/dist/lib/isValue.js.map +0 -1
  291. package/dist/lib/minifyGraphQLQuery.cjs +0 -7
  292. package/dist/lib/minifyGraphQLQuery.cjs.map +0 -1
  293. package/dist/lib/minifyGraphQLQuery.d.ts +0 -8
  294. package/dist/lib/minifyGraphQLQuery.js +0 -7
  295. package/dist/lib/minifyGraphQLQuery.js.map +0 -1
  296. package/dist/lib/pLimit.cjs +0 -49
  297. package/dist/lib/pLimit.cjs.map +0 -1
  298. package/dist/lib/pLimit.d.ts +0 -22
  299. package/dist/lib/pLimit.js +0 -49
  300. package/dist/lib/pLimit.js.map +0 -1
  301. package/dist/lib/request.cjs +0 -43
  302. package/dist/lib/request.cjs.map +0 -1
  303. package/dist/lib/request.d.ts +0 -73
  304. package/dist/lib/request.js +0 -43
  305. package/dist/lib/request.js.map +0 -1
  306. package/dist/lib/resolveMigrationDocumentData.cjs +0 -134
  307. package/dist/lib/resolveMigrationDocumentData.cjs.map +0 -1
  308. package/dist/lib/resolveMigrationDocumentData.d.ts +0 -54
  309. package/dist/lib/resolveMigrationDocumentData.js +0 -134
  310. package/dist/lib/resolveMigrationDocumentData.js.map +0 -1
  311. package/dist/lib/serializerHelpers.cjs +0 -113
  312. package/dist/lib/serializerHelpers.cjs.map +0 -1
  313. package/dist/lib/serializerHelpers.d.ts +0 -9
  314. package/dist/lib/serializerHelpers.js +0 -113
  315. package/dist/lib/serializerHelpers.js.map +0 -1
  316. package/dist/lib/someTagsFilter.cjs +0 -9
  317. package/dist/lib/someTagsFilter.cjs.map +0 -1
  318. package/dist/lib/someTagsFilter.d.ts +0 -9
  319. package/dist/lib/someTagsFilter.js +0 -9
  320. package/dist/lib/someTagsFilter.js.map +0 -1
  321. package/dist/lib/throttledLog.cjs +0 -17
  322. package/dist/lib/throttledLog.cjs.map +0 -1
  323. package/dist/lib/throttledLog.d.ts +0 -15
  324. package/dist/lib/throttledLog.js +0 -17
  325. package/dist/lib/throttledLog.js.map +0 -1
  326. package/dist/lib/typeFilter.cjs +0 -8
  327. package/dist/lib/typeFilter.cjs.map +0 -1
  328. package/dist/lib/typeFilter.d.ts +0 -8
  329. package/dist/lib/typeFilter.js +0 -8
  330. package/dist/lib/typeFilter.js.map +0 -1
  331. package/dist/lib/validateAssetMetadata.cjs +0 -28
  332. package/dist/lib/validateAssetMetadata.cjs.map +0 -1
  333. package/dist/lib/validateAssetMetadata.d.ts +0 -10
  334. package/dist/lib/validateAssetMetadata.js +0 -28
  335. package/dist/lib/validateAssetMetadata.js.map +0 -1
  336. package/dist/package.json.cjs +0 -7
  337. package/dist/package.json.cjs.map +0 -1
  338. package/dist/package.json.js +0 -7
  339. package/dist/package.json.js.map +0 -1
  340. package/dist/richtext/asText.cjs +0 -13
  341. package/dist/richtext/asText.cjs.map +0 -1
  342. package/dist/richtext/asText.d.ts +0 -12
  343. package/dist/richtext/asText.js +0 -13
  344. package/dist/richtext/asText.js.map +0 -1
  345. package/dist/richtext/asTree.cjs +0 -123
  346. package/dist/richtext/asTree.cjs.map +0 -1
  347. package/dist/richtext/asTree.d.ts +0 -14
  348. package/dist/richtext/asTree.js +0 -123
  349. package/dist/richtext/asTree.js.map +0 -1
  350. package/dist/richtext/composeSerializers.cjs +0 -17
  351. package/dist/richtext/composeSerializers.cjs.map +0 -1
  352. package/dist/richtext/composeSerializers.d.ts +0 -16
  353. package/dist/richtext/composeSerializers.js +0 -17
  354. package/dist/richtext/composeSerializers.js.map +0 -1
  355. package/dist/richtext/serialize.cjs +0 -19
  356. package/dist/richtext/serialize.cjs.map +0 -1
  357. package/dist/richtext/serialize.d.ts +0 -19
  358. package/dist/richtext/serialize.js +0 -19
  359. package/dist/richtext/serialize.js.map +0 -1
  360. package/dist/richtext/types.cjs +0 -11
  361. package/dist/richtext/types.cjs.map +0 -1
  362. package/dist/richtext/types.d.ts +0 -71
  363. package/dist/richtext/types.js +0 -11
  364. package/dist/richtext/types.js.map +0 -1
  365. package/dist/richtext/wrapMapSerializer.cjs +0 -24
  366. package/dist/richtext/wrapMapSerializer.cjs.map +0 -1
  367. package/dist/richtext/wrapMapSerializer.d.ts +0 -15
  368. package/dist/richtext/wrapMapSerializer.js +0 -24
  369. package/dist/richtext/wrapMapSerializer.js.map +0 -1
  370. package/dist/richtext.cjs +0 -15
  371. package/dist/richtext.cjs.map +0 -1
  372. package/dist/richtext.js +0 -15
  373. package/dist/richtext.js.map +0 -1
  374. package/dist/types/api/asset/asset.d.ts +0 -177
  375. package/dist/types/api/asset/tag.d.ts +0 -53
  376. package/dist/types/api/integration.d.ts +0 -28
  377. package/dist/types/api/migration/document.d.ts +0 -60
  378. package/dist/types/api/query.d.ts +0 -43
  379. package/dist/types/api/ref.d.ts +0 -32
  380. package/dist/types/api/release.d.ts +0 -11
  381. package/dist/types/api/repository.d.ts +0 -109
  382. package/dist/types/api/tags.d.ts +0 -9
  383. package/dist/types/migration/Asset.cjs +0 -33
  384. package/dist/types/migration/Asset.cjs.map +0 -1
  385. package/dist/types/migration/Asset.d.ts +0 -108
  386. package/dist/types/migration/Asset.js +0 -33
  387. package/dist/types/migration/Asset.js.map +0 -1
  388. package/dist/types/migration/ContentRelationship.d.ts +0 -16
  389. package/dist/types/migration/Document.cjs +0 -47
  390. package/dist/types/migration/Document.cjs.map +0 -1
  391. package/dist/types/migration/Document.d.ts +0 -94
  392. package/dist/types/migration/Document.js +0 -47
  393. package/dist/types/migration/Document.js.map +0 -1
  394. package/dist/types/migration/Link.d.ts +0 -19
  395. package/dist/types/model/boolean.d.ts +0 -15
  396. package/dist/types/model/color.d.ts +0 -13
  397. package/dist/types/model/contentRelationship.d.ts +0 -52
  398. package/dist/types/model/customType.d.ts +0 -48
  399. package/dist/types/model/date.d.ts +0 -14
  400. package/dist/types/model/embed.d.ts +0 -13
  401. package/dist/types/model/geoPoint.d.ts +0 -12
  402. package/dist/types/model/group.d.ts +0 -23
  403. package/dist/types/model/image.d.ts +0 -31
  404. package/dist/types/model/integration.d.ts +0 -14
  405. package/dist/types/model/keyText.d.ts +0 -13
  406. package/dist/types/model/link.cjs +0 -9
  407. package/dist/types/model/link.cjs.map +0 -1
  408. package/dist/types/model/link.d.ts +0 -28
  409. package/dist/types/model/link.js +0 -9
  410. package/dist/types/model/link.js.map +0 -1
  411. package/dist/types/model/linkToMedia.d.ts +0 -17
  412. package/dist/types/model/number.d.ts +0 -15
  413. package/dist/types/model/range.d.ts +0 -14
  414. package/dist/types/model/richText.d.ts +0 -37
  415. package/dist/types/model/select.d.ts +0 -18
  416. package/dist/types/model/separator.d.ts +0 -10
  417. package/dist/types/model/sharedSlice.d.ts +0 -16
  418. package/dist/types/model/sharedSliceVariation.d.ts +0 -19
  419. package/dist/types/model/slice.cjs +0 -8
  420. package/dist/types/model/slice.cjs.map +0 -1
  421. package/dist/types/model/slice.d.ts +0 -33
  422. package/dist/types/model/slice.js +0 -8
  423. package/dist/types/model/slice.js.map +0 -1
  424. package/dist/types/model/sliceZone.cjs +0 -8
  425. package/dist/types/model/sliceZone.cjs.map +0 -1
  426. package/dist/types/model/sliceZone.d.ts +0 -41
  427. package/dist/types/model/sliceZone.js +0 -8
  428. package/dist/types/model/sliceZone.js.map +0 -1
  429. package/dist/types/model/table.d.ts +0 -12
  430. package/dist/types/model/timestamp.d.ts +0 -14
  431. package/dist/types/model/title.d.ts +0 -7
  432. package/dist/types/model/types.cjs +0 -39
  433. package/dist/types/model/types.cjs.map +0 -1
  434. package/dist/types/model/types.d.ts +0 -77
  435. package/dist/types/model/types.js +0 -39
  436. package/dist/types/model/types.js.map +0 -1
  437. package/dist/types/model/uid.d.ts +0 -13
  438. package/dist/types/value/boolean.d.ts +0 -6
  439. package/dist/types/value/color.d.ts +0 -9
  440. package/dist/types/value/contentRelationship.d.ts +0 -31
  441. package/dist/types/value/date.d.ts +0 -9
  442. package/dist/types/value/document.d.ts +0 -114
  443. package/dist/types/value/embed.cjs +0 -10
  444. package/dist/types/value/embed.cjs.map +0 -1
  445. package/dist/types/value/embed.d.ts +0 -168
  446. package/dist/types/value/embed.js +0 -10
  447. package/dist/types/value/embed.js.map +0 -1
  448. package/dist/types/value/geoPoint.d.ts +0 -12
  449. package/dist/types/value/group.d.ts +0 -13
  450. package/dist/types/value/image.d.ts +0 -47
  451. package/dist/types/value/integration.d.ts +0 -16
  452. package/dist/types/value/keyText.d.ts +0 -9
  453. package/dist/types/value/link.cjs +0 -10
  454. package/dist/types/value/link.cjs.map +0 -1
  455. package/dist/types/value/link.d.ts +0 -68
  456. package/dist/types/value/link.js +0 -10
  457. package/dist/types/value/link.js.map +0 -1
  458. package/dist/types/value/linkToMedia.d.ts +0 -28
  459. package/dist/types/value/number.d.ts +0 -9
  460. package/dist/types/value/richText.cjs +0 -25
  461. package/dist/types/value/richText.cjs.map +0 -1
  462. package/dist/types/value/richText.d.ts +0 -215
  463. package/dist/types/value/richText.js +0 -25
  464. package/dist/types/value/richText.js.map +0 -1
  465. package/dist/types/value/select.d.ts +0 -10
  466. package/dist/types/value/sharedSlice.d.ts +0 -11
  467. package/dist/types/value/sharedSliceVariation.d.ts +0 -10
  468. package/dist/types/value/slice.d.ts +0 -13
  469. package/dist/types/value/sliceZone.d.ts +0 -12
  470. package/dist/types/value/table.d.ts +0 -91
  471. package/dist/types/value/timestamp.d.ts +0 -8
  472. package/dist/types/value/title.d.ts +0 -12
  473. package/dist/types/value/types.d.ts +0 -58
  474. package/dist/types/webhook/apiUpdate.d.ts +0 -52
  475. package/dist/types/webhook/testTrigger.d.ts +0 -9
  476. package/dist/types/webhook/types.cjs +0 -8
  477. package/dist/types/webhook/types.cjs.map +0 -1
  478. package/dist/types/webhook/types.d.ts +0 -18
  479. package/dist/types/webhook/types.js +0 -8
  480. package/dist/types/webhook/types.js.map +0 -1
@@ -1,15 +0,0 @@
1
- import type { CustomTypeModelFieldType } from "./types";
2
- /**
3
- * A number custom type field.
4
- *
5
- * More details: {@link https://prismic.io/docs/number}
6
- */
7
- export interface CustomTypeModelNumberField {
8
- type: typeof CustomTypeModelFieldType.Number;
9
- config?: {
10
- label?: string | null;
11
- placeholder?: string;
12
- min?: number;
13
- max?: number;
14
- };
15
- }
@@ -1,14 +0,0 @@
1
- import type { CustomTypeModelFieldType } from "./types";
2
- /**
3
- * @deprecated - Legacy field. Use `CustomTypeModelNumberField` instead.
4
- */
5
- export interface CustomTypeModelRangeField {
6
- type: typeof CustomTypeModelFieldType.Range;
7
- config?: {
8
- label?: string | null;
9
- placeholder?: string;
10
- min?: number;
11
- max?: number;
12
- step?: number;
13
- };
14
- }
@@ -1,37 +0,0 @@
1
- import type { CustomTypeModelFieldType } from "./types";
2
- /**
3
- * A rich text custom type field.
4
- *
5
- * More details: {@link https://prismic.io/docs/rich-text-title}
6
- */
7
- export type CustomTypeModelRichTextField = CustomTypeModelRichTextMultiField | CustomTypeModelRichTextSingleField;
8
- /**
9
- * A rich text custom type field which supports multiple blocks of content.
10
- *
11
- * More details: {@link https://prismic.io/docs/rich-text-title}
12
- */
13
- export interface CustomTypeModelRichTextMultiField {
14
- type: typeof CustomTypeModelFieldType.StructuredText;
15
- config?: {
16
- label?: string | null;
17
- placeholder?: string;
18
- allowTargetBlank?: boolean;
19
- multi?: string;
20
- labels?: readonly string[];
21
- };
22
- }
23
- /**
24
- * A rich text custom type field which supports one block of content.
25
- *
26
- * More details: {@link https://prismic.io/docs/rich-text-title}
27
- */
28
- export interface CustomTypeModelRichTextSingleField {
29
- type: typeof CustomTypeModelFieldType.StructuredText;
30
- config?: {
31
- label?: string | null;
32
- placeholder?: string;
33
- allowTargetBlank?: boolean;
34
- single?: string;
35
- labels?: readonly string[];
36
- };
37
- }
@@ -1,18 +0,0 @@
1
- import type { CustomTypeModelFieldType } from "./types";
2
- /**
3
- * A select custom type field.
4
- *
5
- * More details: {@link https://prismic.io/docs/select}
6
- *
7
- * @typeParam Options - Options for the field.
8
- * @typeParam DefaultValue - Default value for the field.
9
- */
10
- export interface CustomTypeModelSelectField<Option extends string = string, DefaultValue extends Option = Option> {
11
- type: typeof CustomTypeModelFieldType.Select;
12
- config?: {
13
- label?: string | null;
14
- placeholder?: string;
15
- options?: readonly Option[];
16
- default_value?: DefaultValue;
17
- };
18
- }
@@ -1,10 +0,0 @@
1
- import type { CustomTypeModelFieldType } from "./types";
2
- /**
3
- * @deprecated - Legacy field. Do not use.
4
- */
5
- export interface CustomTypeModelSeparatorField {
6
- type: typeof CustomTypeModelFieldType.Separator;
7
- config?: {
8
- label?: string | null;
9
- };
10
- }
@@ -1,16 +0,0 @@
1
- import type { SharedSliceModelVariation } from "./sharedSliceVariation";
2
- import type { CustomTypeModelSliceType } from "./sliceZone";
3
- /**
4
- * A Prismic shared Slice model.
5
- *
6
- * More details: {@link https://prismic.io/docs/slice}
7
- *
8
- * @typeParam Variation - A variation for the shared Slice.
9
- */
10
- export interface SharedSliceModel<ID extends string = string, Variation extends SharedSliceModelVariation = SharedSliceModelVariation> {
11
- type: typeof CustomTypeModelSliceType.SharedSlice;
12
- id: ID;
13
- name: string;
14
- description?: string;
15
- variations: readonly Variation[];
16
- }
@@ -1,19 +0,0 @@
1
- import type { CustomTypeModelFieldForNestedGroup, CustomTypeModelFieldForSlicePrimary } from "./types";
2
- /**
3
- * A shared Slice variation.
4
- *
5
- * More details: {@link https://prismic.io/docs/slice}
6
- *
7
- * @typeParam PrimaryFields - A record of fields that cannnot be repeated.
8
- * @typeParam ItemFields - A record of fields that can be repeated.
9
- */
10
- export interface SharedSliceModelVariation<ID extends string = string, PrimaryFields extends Record<string, CustomTypeModelFieldForSlicePrimary> = Record<string, CustomTypeModelFieldForSlicePrimary>, ItemFields extends Record<string, CustomTypeModelFieldForNestedGroup> = Record<string, CustomTypeModelFieldForNestedGroup>> {
11
- id: ID;
12
- name: string;
13
- docURL: string;
14
- version: string;
15
- description: string;
16
- primary?: PrimaryFields;
17
- items?: ItemFields;
18
- imageUrl: string;
19
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const CustomTypeModelSliceDisplay = {
4
- List: "list",
5
- Grid: "grid"
6
- };
7
- exports.CustomTypeModelSliceDisplay = CustomTypeModelSliceDisplay;
8
- //# sourceMappingURL=slice.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"slice.cjs","sources":["../../../../src/types/model/slice.ts"],"sourcesContent":["import type { CustomTypeModelFieldForNestedGroup } from \"./types\"\n\nimport type { CustomTypeModelNestedGroupField } from \"./group\"\nimport type { CustomTypeModelSliceType } from \"./sliceZone\"\n\n/**\n * A Slice for a custom type.\n *\n * More details: {@link https://prismic.io/docs/slice}\n *\n * @typeParam NonRepeatFields - A record of fields that cannnot be repeated.\n * @typeParam RepeatFields - A record of fields that can be repeated.\n */\nexport interface CustomTypeModelSlice<\n\tNonRepeatFields extends Record<\n\t\tstring,\n\t\tCustomTypeModelFieldForNestedGroup\n\t> = Record<string, CustomTypeModelFieldForNestedGroup>,\n\tRepeatFields extends Record<\n\t\tstring,\n\t\tCustomTypeModelFieldForNestedGroup\n\t> = Record<string, CustomTypeModelFieldForNestedGroup>,\n> {\n\ttype: typeof CustomTypeModelSliceType.Slice\n\tfieldset?: string | null\n\tdescription?: string\n\ticon?: string\n\tdisplay?:\n\t\t| (typeof CustomTypeModelSliceDisplay)[keyof typeof CustomTypeModelSliceDisplay]\n\t\t| string\n\t\"non-repeat\"?: NonRepeatFields\n\trepeat?: RepeatFields\n}\n\n/**\n * Display type for a Slice.\n *\n * More details: {@link https://prismic.io/docs/slice}\n */\nexport const CustomTypeModelSliceDisplay = {\n\tList: \"list\",\n\tGrid: \"grid\",\n} as const\n\n/**\n * @deprecated - Legacy slice type. Do not use.\n */\nexport type CustomTypeModelLegacySlice =\n\t| CustomTypeModelNestedGroupField\n\t| CustomTypeModelFieldForNestedGroup\n"],"names":[],"mappings":";;AAuCO,MAAM,8BAA8B;AAAA,EAC1C,MAAM;AAAA,EACN,MAAM;;;"}
@@ -1,33 +0,0 @@
1
- import type { CustomTypeModelFieldForNestedGroup } from "./types";
2
- import type { CustomTypeModelNestedGroupField } from "./group";
3
- import type { CustomTypeModelSliceType } from "./sliceZone";
4
- /**
5
- * A Slice for a custom type.
6
- *
7
- * More details: {@link https://prismic.io/docs/slice}
8
- *
9
- * @typeParam NonRepeatFields - A record of fields that cannnot be repeated.
10
- * @typeParam RepeatFields - A record of fields that can be repeated.
11
- */
12
- export interface CustomTypeModelSlice<NonRepeatFields extends Record<string, CustomTypeModelFieldForNestedGroup> = Record<string, CustomTypeModelFieldForNestedGroup>, RepeatFields extends Record<string, CustomTypeModelFieldForNestedGroup> = Record<string, CustomTypeModelFieldForNestedGroup>> {
13
- type: typeof CustomTypeModelSliceType.Slice;
14
- fieldset?: string | null;
15
- description?: string;
16
- icon?: string;
17
- display?: (typeof CustomTypeModelSliceDisplay)[keyof typeof CustomTypeModelSliceDisplay] | string;
18
- "non-repeat"?: NonRepeatFields;
19
- repeat?: RepeatFields;
20
- }
21
- /**
22
- * Display type for a Slice.
23
- *
24
- * More details: {@link https://prismic.io/docs/slice}
25
- */
26
- export declare const CustomTypeModelSliceDisplay: {
27
- readonly List: "list";
28
- readonly Grid: "grid";
29
- };
30
- /**
31
- * @deprecated - Legacy slice type. Do not use.
32
- */
33
- export type CustomTypeModelLegacySlice = CustomTypeModelNestedGroupField | CustomTypeModelFieldForNestedGroup;
@@ -1,8 +0,0 @@
1
- const CustomTypeModelSliceDisplay = {
2
- List: "list",
3
- Grid: "grid"
4
- };
5
- export {
6
- CustomTypeModelSliceDisplay
7
- };
8
- //# sourceMappingURL=slice.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"slice.js","sources":["../../../../src/types/model/slice.ts"],"sourcesContent":["import type { CustomTypeModelFieldForNestedGroup } from \"./types\"\n\nimport type { CustomTypeModelNestedGroupField } from \"./group\"\nimport type { CustomTypeModelSliceType } from \"./sliceZone\"\n\n/**\n * A Slice for a custom type.\n *\n * More details: {@link https://prismic.io/docs/slice}\n *\n * @typeParam NonRepeatFields - A record of fields that cannnot be repeated.\n * @typeParam RepeatFields - A record of fields that can be repeated.\n */\nexport interface CustomTypeModelSlice<\n\tNonRepeatFields extends Record<\n\t\tstring,\n\t\tCustomTypeModelFieldForNestedGroup\n\t> = Record<string, CustomTypeModelFieldForNestedGroup>,\n\tRepeatFields extends Record<\n\t\tstring,\n\t\tCustomTypeModelFieldForNestedGroup\n\t> = Record<string, CustomTypeModelFieldForNestedGroup>,\n> {\n\ttype: typeof CustomTypeModelSliceType.Slice\n\tfieldset?: string | null\n\tdescription?: string\n\ticon?: string\n\tdisplay?:\n\t\t| (typeof CustomTypeModelSliceDisplay)[keyof typeof CustomTypeModelSliceDisplay]\n\t\t| string\n\t\"non-repeat\"?: NonRepeatFields\n\trepeat?: RepeatFields\n}\n\n/**\n * Display type for a Slice.\n *\n * More details: {@link https://prismic.io/docs/slice}\n */\nexport const CustomTypeModelSliceDisplay = {\n\tList: \"list\",\n\tGrid: \"grid\",\n} as const\n\n/**\n * @deprecated - Legacy slice type. Do not use.\n */\nexport type CustomTypeModelLegacySlice =\n\t| CustomTypeModelNestedGroupField\n\t| CustomTypeModelFieldForNestedGroup\n"],"names":[],"mappings":"AAuCO,MAAM,8BAA8B;AAAA,EAC1C,MAAM;AAAA,EACN,MAAM;;"}
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const CustomTypeModelSliceType = {
4
- Slice: "Slice",
5
- SharedSlice: "SharedSlice"
6
- };
7
- exports.CustomTypeModelSliceType = CustomTypeModelSliceType;
8
- //# sourceMappingURL=sliceZone.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sliceZone.cjs","sources":["../../../../src/types/model/sliceZone.ts"],"sourcesContent":["import type { CustomTypeModelFieldType } from \"./types\"\n\nimport type { CustomTypeModelLegacySlice, CustomTypeModelSlice } from \"./slice\"\n\n/**\n * A Slice Zone custom type field.\n *\n * More details: {@link https://prismic.io/docs/slice}\n */\nexport interface CustomTypeModelSliceZoneField<\n\tSlices extends Record<\n\t\tstring,\n\t\t| CustomTypeModelSlice\n\t\t| CustomTypeModelSharedSlice\n\t\t| CustomTypeModelLegacySlice\n\t> = Record<\n\t\tstring,\n\t\t| CustomTypeModelSlice\n\t\t| CustomTypeModelSharedSlice\n\t\t| CustomTypeModelLegacySlice\n\t>,\n> {\n\ttype:\n\t\t| typeof CustomTypeModelFieldType.Slices\n\t\t| typeof CustomTypeModelFieldType.LegacySlices\n\tfieldset?: string | null\n\tconfig?: {\n\t\tlabels?: Record<string, readonly CustomTypeModelSliceLabel[]> | null\n\t\tchoices?: Slices\n\t}\n}\n\n/**\n * Label for a Slice.\n *\n * More details: {@link https://prismic.io/docs/slice}\n */\nexport interface CustomTypeModelSliceLabel {\n\tname: string\n\tdisplay?: string\n}\n\n/**\n * Type identifier for a Slice.\n *\n * More details: {@link https://prismic.io/docs/slice}\n */\nexport const CustomTypeModelSliceType = {\n\tSlice: \"Slice\",\n\tSharedSlice: \"SharedSlice\",\n} as const\n\n/**\n * A shared Slice for a custom type.\n *\n * More details: {@link https://prismic.io/docs/slice}\n */\nexport interface CustomTypeModelSharedSlice {\n\ttype: typeof CustomTypeModelSliceType.SharedSlice\n}\n"],"names":[],"mappings":";;AA+CO,MAAM,2BAA2B;AAAA,EACvC,OAAO;AAAA,EACP,aAAa;;;"}
@@ -1,41 +0,0 @@
1
- import type { CustomTypeModelFieldType } from "./types";
2
- import type { CustomTypeModelLegacySlice, CustomTypeModelSlice } from "./slice";
3
- /**
4
- * A Slice Zone custom type field.
5
- *
6
- * More details: {@link https://prismic.io/docs/slice}
7
- */
8
- export interface CustomTypeModelSliceZoneField<Slices extends Record<string, CustomTypeModelSlice | CustomTypeModelSharedSlice | CustomTypeModelLegacySlice> = Record<string, CustomTypeModelSlice | CustomTypeModelSharedSlice | CustomTypeModelLegacySlice>> {
9
- type: typeof CustomTypeModelFieldType.Slices | typeof CustomTypeModelFieldType.LegacySlices;
10
- fieldset?: string | null;
11
- config?: {
12
- labels?: Record<string, readonly CustomTypeModelSliceLabel[]> | null;
13
- choices?: Slices;
14
- };
15
- }
16
- /**
17
- * Label for a Slice.
18
- *
19
- * More details: {@link https://prismic.io/docs/slice}
20
- */
21
- export interface CustomTypeModelSliceLabel {
22
- name: string;
23
- display?: string;
24
- }
25
- /**
26
- * Type identifier for a Slice.
27
- *
28
- * More details: {@link https://prismic.io/docs/slice}
29
- */
30
- export declare const CustomTypeModelSliceType: {
31
- readonly Slice: "Slice";
32
- readonly SharedSlice: "SharedSlice";
33
- };
34
- /**
35
- * A shared Slice for a custom type.
36
- *
37
- * More details: {@link https://prismic.io/docs/slice}
38
- */
39
- export interface CustomTypeModelSharedSlice {
40
- type: typeof CustomTypeModelSliceType.SharedSlice;
41
- }
@@ -1,8 +0,0 @@
1
- const CustomTypeModelSliceType = {
2
- Slice: "Slice",
3
- SharedSlice: "SharedSlice"
4
- };
5
- export {
6
- CustomTypeModelSliceType
7
- };
8
- //# sourceMappingURL=sliceZone.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sliceZone.js","sources":["../../../../src/types/model/sliceZone.ts"],"sourcesContent":["import type { CustomTypeModelFieldType } from \"./types\"\n\nimport type { CustomTypeModelLegacySlice, CustomTypeModelSlice } from \"./slice\"\n\n/**\n * A Slice Zone custom type field.\n *\n * More details: {@link https://prismic.io/docs/slice}\n */\nexport interface CustomTypeModelSliceZoneField<\n\tSlices extends Record<\n\t\tstring,\n\t\t| CustomTypeModelSlice\n\t\t| CustomTypeModelSharedSlice\n\t\t| CustomTypeModelLegacySlice\n\t> = Record<\n\t\tstring,\n\t\t| CustomTypeModelSlice\n\t\t| CustomTypeModelSharedSlice\n\t\t| CustomTypeModelLegacySlice\n\t>,\n> {\n\ttype:\n\t\t| typeof CustomTypeModelFieldType.Slices\n\t\t| typeof CustomTypeModelFieldType.LegacySlices\n\tfieldset?: string | null\n\tconfig?: {\n\t\tlabels?: Record<string, readonly CustomTypeModelSliceLabel[]> | null\n\t\tchoices?: Slices\n\t}\n}\n\n/**\n * Label for a Slice.\n *\n * More details: {@link https://prismic.io/docs/slice}\n */\nexport interface CustomTypeModelSliceLabel {\n\tname: string\n\tdisplay?: string\n}\n\n/**\n * Type identifier for a Slice.\n *\n * More details: {@link https://prismic.io/docs/slice}\n */\nexport const CustomTypeModelSliceType = {\n\tSlice: \"Slice\",\n\tSharedSlice: \"SharedSlice\",\n} as const\n\n/**\n * A shared Slice for a custom type.\n *\n * More details: {@link https://prismic.io/docs/slice}\n */\nexport interface CustomTypeModelSharedSlice {\n\ttype: typeof CustomTypeModelSliceType.SharedSlice\n}\n"],"names":[],"mappings":"AA+CO,MAAM,2BAA2B;AAAA,EACvC,OAAO;AAAA,EACP,aAAa;;"}
@@ -1,12 +0,0 @@
1
- import type { CustomTypeModelFieldType } from "./types";
2
- /**
3
- * A table custom type field.
4
- *
5
- * More details: {@link https://prismic.io/docs/table}
6
- */
7
- export interface CustomTypeModelTableField {
8
- type: typeof CustomTypeModelFieldType.Table;
9
- config?: {
10
- label?: string | null;
11
- };
12
- }
@@ -1,14 +0,0 @@
1
- import type { CustomTypeModelFieldType } from "./types";
2
- /**
3
- * A timestamp custom type field.
4
- *
5
- * More details: {@link https://prismic.io/docs/timestamp}
6
- */
7
- export interface CustomTypeModelTimestampField {
8
- type: typeof CustomTypeModelFieldType.Timestamp;
9
- config?: {
10
- label?: string | null;
11
- placeholder?: string;
12
- default?: string;
13
- };
14
- }
@@ -1,7 +0,0 @@
1
- import type { CustomTypeModelRichTextSingleField } from "./richText";
2
- /**
3
- * A title custom type field.
4
- *
5
- * More details: {@link https://prismic.io/docs/rich-text-title}
6
- */
7
- export type CustomTypeModelTitleField = CustomTypeModelRichTextSingleField;
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const CustomTypeModelFieldType = {
4
- Boolean: "Boolean",
5
- Color: "Color",
6
- Date: "Date",
7
- Embed: "Embed",
8
- GeoPoint: "GeoPoint",
9
- Group: "Group",
10
- Image: "Image",
11
- Integration: "IntegrationFields",
12
- Link: "Link",
13
- Number: "Number",
14
- Select: "Select",
15
- Slices: "Slices",
16
- StructuredText: "StructuredText",
17
- Table: "Table",
18
- Text: "Text",
19
- Timestamp: "Timestamp",
20
- UID: "UID",
21
- /**
22
- * @deprecated - Renamed to `Integration`.
23
- */
24
- IntegrationFields: "IntegrationFields",
25
- /**
26
- * @deprecated - Legacy field type. Use `Number` instead.
27
- */
28
- Range: "Range",
29
- /**
30
- * @deprecated - Legacy field type. Do not use.
31
- */
32
- Separator: "Separator",
33
- /**
34
- * @deprecated - Legacy field type. Use `Slices` instead.
35
- */
36
- LegacySlices: "Choice"
37
- };
38
- exports.CustomTypeModelFieldType = CustomTypeModelFieldType;
39
- //# sourceMappingURL=types.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.cjs","sources":["../../../../src/types/model/types.ts"],"sourcesContent":["import type { CustomTypeModelBooleanField } from \"./boolean\"\nimport type { CustomTypeModelColorField } from \"./color\"\nimport type { CustomTypeModelContentRelationshipField } from \"./contentRelationship\"\nimport type { CustomTypeModelDateField } from \"./date\"\nimport type { CustomTypeModelEmbedField } from \"./embed\"\nimport type { CustomTypeModelGeoPointField } from \"./geoPoint\"\nimport type {\n\tCustomTypeModelGroupField,\n\tCustomTypeModelNestedGroupField,\n} from \"./group\"\nimport type { CustomTypeModelImageField } from \"./image\"\nimport type { CustomTypeModelIntegrationField } from \"./integration\"\nimport type { CustomTypeModelKeyTextField } from \"./keyText\"\nimport type { CustomTypeModelLinkField } from \"./link\"\nimport type { CustomTypeModelLinkToMediaField } from \"./linkToMedia\"\nimport type { CustomTypeModelNumberField } from \"./number\"\nimport type { CustomTypeModelRangeField } from \"./range\"\nimport type { CustomTypeModelRichTextField } from \"./richText\"\nimport type { CustomTypeModelSelectField } from \"./select\"\nimport type { CustomTypeModelSeparatorField } from \"./separator\"\nimport type { CustomTypeModelSliceZoneField } from \"./sliceZone\"\nimport type { CustomTypeModelTableField } from \"./table\"\nimport type { CustomTypeModelTimestampField } from \"./timestamp\"\nimport type { CustomTypeModelTitleField } from \"./title\"\nimport type { CustomTypeModelUIDField } from \"./uid\"\n\n/**\n * Type identifier for a custom type field.\n */\nexport const CustomTypeModelFieldType = {\n\tBoolean: \"Boolean\",\n\tColor: \"Color\",\n\tDate: \"Date\",\n\tEmbed: \"Embed\",\n\tGeoPoint: \"GeoPoint\",\n\tGroup: \"Group\",\n\tImage: \"Image\",\n\tIntegration: \"IntegrationFields\",\n\tLink: \"Link\",\n\tNumber: \"Number\",\n\tSelect: \"Select\",\n\tSlices: \"Slices\",\n\tStructuredText: \"StructuredText\",\n\tTable: \"Table\",\n\tText: \"Text\",\n\tTimestamp: \"Timestamp\",\n\tUID: \"UID\",\n\t/**\n\t * @deprecated - Renamed to `Integration`.\n\t */\n\tIntegrationFields: \"IntegrationFields\",\n\t/**\n\t * @deprecated - Legacy field type. Use `Number` instead.\n\t */\n\tRange: \"Range\",\n\t/**\n\t * @deprecated - Legacy field type. Do not use.\n\t */\n\tSeparator: \"Separator\",\n\t/**\n\t * @deprecated - Legacy field type. Use `Slices` instead.\n\t */\n\tLegacySlices: \"Choice\",\n} as const\n\nexport type CustomTypeModelFieldType = typeof CustomTypeModelFieldType\n\n/**\n * A custom type field.\n */\nexport type CustomTypeModelField =\n\t| CustomTypeModelUIDField\n\t| CustomTypeModelGroupField\n\t| CustomTypeModelSliceZoneField\n\t| CustomTypeModelFieldForNestedGroup\n\n/**\n * Any custom type field that is valid for a slice's primary section.\n */\nexport type CustomTypeModelFieldForSlicePrimary =\n\t| CustomTypeModelGroupField\n\t| CustomTypeModelFieldForNestedGroup\n\n/**\n * Any custom type field that is valid for a group field.\n */\nexport type CustomTypeModelFieldForGroup =\n\t| CustomTypeModelNestedGroupField\n\t| CustomTypeModelFieldForNestedGroup\n\n/**\n * Any custom type field that is valid for a nested group field.\n */\nexport type CustomTypeModelFieldForNestedGroup =\n\t| CustomTypeModelBooleanField\n\t| CustomTypeModelColorField\n\t| CustomTypeModelDateField\n\t| CustomTypeModelEmbedField\n\t| CustomTypeModelGeoPointField\n\t| CustomTypeModelImageField\n\t| CustomTypeModelIntegrationField\n\t| CustomTypeModelContentRelationshipField\n\t| CustomTypeModelLinkField\n\t| CustomTypeModelLinkToMediaField\n\t| CustomTypeModelNumberField\n\t| CustomTypeModelRangeField\n\t| CustomTypeModelSelectField\n\t| CustomTypeModelRichTextField\n\t| CustomTypeModelTableField\n\t| CustomTypeModelTitleField\n\t| CustomTypeModelKeyTextField\n\t| CustomTypeModelTimestampField\n\t| CustomTypeModelSeparatorField\n"],"names":[],"mappings":";;AA6BO,MAAM,2BAA2B;AAAA,EACvC,SAAS;AAAA,EACT,OAAO;AAAA,EACP,MAAM;AAAA,EACN,OAAO;AAAA,EACP,UAAU;AAAA,EACV,OAAO;AAAA,EACP,OAAO;AAAA,EACP,aAAa;AAAA,EACb,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,gBAAgB;AAAA,EAChB,OAAO;AAAA,EACP,MAAM;AAAA,EACN,WAAW;AAAA,EACX,KAAK;AAAA;AAAA;AAAA;AAAA,EAIL,mBAAmB;AAAA;AAAA;AAAA;AAAA,EAInB,OAAO;AAAA;AAAA;AAAA;AAAA,EAIP,WAAW;AAAA;AAAA;AAAA;AAAA,EAIX,cAAc;;;"}
@@ -1,77 +0,0 @@
1
- import type { CustomTypeModelBooleanField } from "./boolean";
2
- import type { CustomTypeModelColorField } from "./color";
3
- import type { CustomTypeModelContentRelationshipField } from "./contentRelationship";
4
- import type { CustomTypeModelDateField } from "./date";
5
- import type { CustomTypeModelEmbedField } from "./embed";
6
- import type { CustomTypeModelGeoPointField } from "./geoPoint";
7
- import type { CustomTypeModelGroupField, CustomTypeModelNestedGroupField } from "./group";
8
- import type { CustomTypeModelImageField } from "./image";
9
- import type { CustomTypeModelIntegrationField } from "./integration";
10
- import type { CustomTypeModelKeyTextField } from "./keyText";
11
- import type { CustomTypeModelLinkField } from "./link";
12
- import type { CustomTypeModelLinkToMediaField } from "./linkToMedia";
13
- import type { CustomTypeModelNumberField } from "./number";
14
- import type { CustomTypeModelRangeField } from "./range";
15
- import type { CustomTypeModelRichTextField } from "./richText";
16
- import type { CustomTypeModelSelectField } from "./select";
17
- import type { CustomTypeModelSeparatorField } from "./separator";
18
- import type { CustomTypeModelSliceZoneField } from "./sliceZone";
19
- import type { CustomTypeModelTableField } from "./table";
20
- import type { CustomTypeModelTimestampField } from "./timestamp";
21
- import type { CustomTypeModelTitleField } from "./title";
22
- import type { CustomTypeModelUIDField } from "./uid";
23
- /**
24
- * Type identifier for a custom type field.
25
- */
26
- export declare const CustomTypeModelFieldType: {
27
- readonly Boolean: "Boolean";
28
- readonly Color: "Color";
29
- readonly Date: "Date";
30
- readonly Embed: "Embed";
31
- readonly GeoPoint: "GeoPoint";
32
- readonly Group: "Group";
33
- readonly Image: "Image";
34
- readonly Integration: "IntegrationFields";
35
- readonly Link: "Link";
36
- readonly Number: "Number";
37
- readonly Select: "Select";
38
- readonly Slices: "Slices";
39
- readonly StructuredText: "StructuredText";
40
- readonly Table: "Table";
41
- readonly Text: "Text";
42
- readonly Timestamp: "Timestamp";
43
- readonly UID: "UID";
44
- /**
45
- * @deprecated - Renamed to `Integration`.
46
- */
47
- readonly IntegrationFields: "IntegrationFields";
48
- /**
49
- * @deprecated - Legacy field type. Use `Number` instead.
50
- */
51
- readonly Range: "Range";
52
- /**
53
- * @deprecated - Legacy field type. Do not use.
54
- */
55
- readonly Separator: "Separator";
56
- /**
57
- * @deprecated - Legacy field type. Use `Slices` instead.
58
- */
59
- readonly LegacySlices: "Choice";
60
- };
61
- export type CustomTypeModelFieldType = typeof CustomTypeModelFieldType;
62
- /**
63
- * A custom type field.
64
- */
65
- export type CustomTypeModelField = CustomTypeModelUIDField | CustomTypeModelGroupField | CustomTypeModelSliceZoneField | CustomTypeModelFieldForNestedGroup;
66
- /**
67
- * Any custom type field that is valid for a slice's primary section.
68
- */
69
- export type CustomTypeModelFieldForSlicePrimary = CustomTypeModelGroupField | CustomTypeModelFieldForNestedGroup;
70
- /**
71
- * Any custom type field that is valid for a group field.
72
- */
73
- export type CustomTypeModelFieldForGroup = CustomTypeModelNestedGroupField | CustomTypeModelFieldForNestedGroup;
74
- /**
75
- * Any custom type field that is valid for a nested group field.
76
- */
77
- export type CustomTypeModelFieldForNestedGroup = CustomTypeModelBooleanField | CustomTypeModelColorField | CustomTypeModelDateField | CustomTypeModelEmbedField | CustomTypeModelGeoPointField | CustomTypeModelImageField | CustomTypeModelIntegrationField | CustomTypeModelContentRelationshipField | CustomTypeModelLinkField | CustomTypeModelLinkToMediaField | CustomTypeModelNumberField | CustomTypeModelRangeField | CustomTypeModelSelectField | CustomTypeModelRichTextField | CustomTypeModelTableField | CustomTypeModelTitleField | CustomTypeModelKeyTextField | CustomTypeModelTimestampField | CustomTypeModelSeparatorField;
@@ -1,39 +0,0 @@
1
- const CustomTypeModelFieldType = {
2
- Boolean: "Boolean",
3
- Color: "Color",
4
- Date: "Date",
5
- Embed: "Embed",
6
- GeoPoint: "GeoPoint",
7
- Group: "Group",
8
- Image: "Image",
9
- Integration: "IntegrationFields",
10
- Link: "Link",
11
- Number: "Number",
12
- Select: "Select",
13
- Slices: "Slices",
14
- StructuredText: "StructuredText",
15
- Table: "Table",
16
- Text: "Text",
17
- Timestamp: "Timestamp",
18
- UID: "UID",
19
- /**
20
- * @deprecated - Renamed to `Integration`.
21
- */
22
- IntegrationFields: "IntegrationFields",
23
- /**
24
- * @deprecated - Legacy field type. Use `Number` instead.
25
- */
26
- Range: "Range",
27
- /**
28
- * @deprecated - Legacy field type. Do not use.
29
- */
30
- Separator: "Separator",
31
- /**
32
- * @deprecated - Legacy field type. Use `Slices` instead.
33
- */
34
- LegacySlices: "Choice"
35
- };
36
- export {
37
- CustomTypeModelFieldType
38
- };
39
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sources":["../../../../src/types/model/types.ts"],"sourcesContent":["import type { CustomTypeModelBooleanField } from \"./boolean\"\nimport type { CustomTypeModelColorField } from \"./color\"\nimport type { CustomTypeModelContentRelationshipField } from \"./contentRelationship\"\nimport type { CustomTypeModelDateField } from \"./date\"\nimport type { CustomTypeModelEmbedField } from \"./embed\"\nimport type { CustomTypeModelGeoPointField } from \"./geoPoint\"\nimport type {\n\tCustomTypeModelGroupField,\n\tCustomTypeModelNestedGroupField,\n} from \"./group\"\nimport type { CustomTypeModelImageField } from \"./image\"\nimport type { CustomTypeModelIntegrationField } from \"./integration\"\nimport type { CustomTypeModelKeyTextField } from \"./keyText\"\nimport type { CustomTypeModelLinkField } from \"./link\"\nimport type { CustomTypeModelLinkToMediaField } from \"./linkToMedia\"\nimport type { CustomTypeModelNumberField } from \"./number\"\nimport type { CustomTypeModelRangeField } from \"./range\"\nimport type { CustomTypeModelRichTextField } from \"./richText\"\nimport type { CustomTypeModelSelectField } from \"./select\"\nimport type { CustomTypeModelSeparatorField } from \"./separator\"\nimport type { CustomTypeModelSliceZoneField } from \"./sliceZone\"\nimport type { CustomTypeModelTableField } from \"./table\"\nimport type { CustomTypeModelTimestampField } from \"./timestamp\"\nimport type { CustomTypeModelTitleField } from \"./title\"\nimport type { CustomTypeModelUIDField } from \"./uid\"\n\n/**\n * Type identifier for a custom type field.\n */\nexport const CustomTypeModelFieldType = {\n\tBoolean: \"Boolean\",\n\tColor: \"Color\",\n\tDate: \"Date\",\n\tEmbed: \"Embed\",\n\tGeoPoint: \"GeoPoint\",\n\tGroup: \"Group\",\n\tImage: \"Image\",\n\tIntegration: \"IntegrationFields\",\n\tLink: \"Link\",\n\tNumber: \"Number\",\n\tSelect: \"Select\",\n\tSlices: \"Slices\",\n\tStructuredText: \"StructuredText\",\n\tTable: \"Table\",\n\tText: \"Text\",\n\tTimestamp: \"Timestamp\",\n\tUID: \"UID\",\n\t/**\n\t * @deprecated - Renamed to `Integration`.\n\t */\n\tIntegrationFields: \"IntegrationFields\",\n\t/**\n\t * @deprecated - Legacy field type. Use `Number` instead.\n\t */\n\tRange: \"Range\",\n\t/**\n\t * @deprecated - Legacy field type. Do not use.\n\t */\n\tSeparator: \"Separator\",\n\t/**\n\t * @deprecated - Legacy field type. Use `Slices` instead.\n\t */\n\tLegacySlices: \"Choice\",\n} as const\n\nexport type CustomTypeModelFieldType = typeof CustomTypeModelFieldType\n\n/**\n * A custom type field.\n */\nexport type CustomTypeModelField =\n\t| CustomTypeModelUIDField\n\t| CustomTypeModelGroupField\n\t| CustomTypeModelSliceZoneField\n\t| CustomTypeModelFieldForNestedGroup\n\n/**\n * Any custom type field that is valid for a slice's primary section.\n */\nexport type CustomTypeModelFieldForSlicePrimary =\n\t| CustomTypeModelGroupField\n\t| CustomTypeModelFieldForNestedGroup\n\n/**\n * Any custom type field that is valid for a group field.\n */\nexport type CustomTypeModelFieldForGroup =\n\t| CustomTypeModelNestedGroupField\n\t| CustomTypeModelFieldForNestedGroup\n\n/**\n * Any custom type field that is valid for a nested group field.\n */\nexport type CustomTypeModelFieldForNestedGroup =\n\t| CustomTypeModelBooleanField\n\t| CustomTypeModelColorField\n\t| CustomTypeModelDateField\n\t| CustomTypeModelEmbedField\n\t| CustomTypeModelGeoPointField\n\t| CustomTypeModelImageField\n\t| CustomTypeModelIntegrationField\n\t| CustomTypeModelContentRelationshipField\n\t| CustomTypeModelLinkField\n\t| CustomTypeModelLinkToMediaField\n\t| CustomTypeModelNumberField\n\t| CustomTypeModelRangeField\n\t| CustomTypeModelSelectField\n\t| CustomTypeModelRichTextField\n\t| CustomTypeModelTableField\n\t| CustomTypeModelTitleField\n\t| CustomTypeModelKeyTextField\n\t| CustomTypeModelTimestampField\n\t| CustomTypeModelSeparatorField\n"],"names":[],"mappings":"AA6BO,MAAM,2BAA2B;AAAA,EACvC,SAAS;AAAA,EACT,OAAO;AAAA,EACP,MAAM;AAAA,EACN,OAAO;AAAA,EACP,UAAU;AAAA,EACV,OAAO;AAAA,EACP,OAAO;AAAA,EACP,aAAa;AAAA,EACb,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,gBAAgB;AAAA,EAChB,OAAO;AAAA,EACP,MAAM;AAAA,EACN,WAAW;AAAA,EACX,KAAK;AAAA;AAAA;AAAA;AAAA,EAIL,mBAAmB;AAAA;AAAA;AAAA;AAAA,EAInB,OAAO;AAAA;AAAA;AAAA;AAAA,EAIP,WAAW;AAAA;AAAA;AAAA;AAAA,EAIX,cAAc;;"}
@@ -1,13 +0,0 @@
1
- import type { CustomTypeModelFieldType } from "./types";
2
- /**
3
- * A UID custom type field.
4
- *
5
- * More details: {@link https://prismic.io/docs/uid}
6
- */
7
- export interface CustomTypeModelUIDField {
8
- type: typeof CustomTypeModelFieldType.UID;
9
- config?: {
10
- label?: string | null;
11
- placeholder?: string;
12
- };
13
- }
@@ -1,6 +0,0 @@
1
- /**
2
- * A boolean field.
3
- *
4
- * @see More details: {@link https://prismic.io/docs/boolean}
5
- */
6
- export type BooleanField = boolean;
@@ -1,9 +0,0 @@
1
- import type { FieldState } from "./types";
2
- /**
3
- * A color field.
4
- *
5
- * @typeParam State - State of the field which determines its shape.
6
- *
7
- * @see More details: {@link https://prismic.io/docs/color}
8
- */
9
- export type ColorField<State extends FieldState = FieldState> = State extends "empty" ? null : `#${string}`;
@@ -1,31 +0,0 @@
1
- import type { AnyRegularField, FieldState } from "./types";
2
- import type { GroupField } from "./group";
3
- import type { SliceZone } from "./sliceZone";
4
- /**
5
- * Field for related documents
6
- *
7
- * @typeParam TypeEnum - Type API ID of the document.
8
- * @typeParam LangEnum - Language API ID of the document.
9
- * @typeParam DataInterface - Data fields for the document (filled in via
10
- * GraphQuery of `fetchLinks`).
11
- * @typeParam State - State of the field which determines its shape.
12
- */
13
- export type ContentRelationshipField<TypeEnum = string, LangEnum = string, DataInterface extends Record<string, AnyRegularField | GroupField | SliceZone> | unknown = unknown, State extends FieldState = FieldState> = State extends "empty" ? EmptyContentRelationshipField : FilledContentRelationshipField<TypeEnum, LangEnum, DataInterface>;
14
- export type EmptyContentRelationshipField = {
15
- link_type: "Any";
16
- };
17
- /**
18
- * Links that refer to documents
19
- */
20
- export interface FilledContentRelationshipField<TypeEnum = string, LangEnum = string, DataInterface extends Record<string, AnyRegularField | GroupField | SliceZone> | unknown = unknown> {
21
- link_type: "Document";
22
- id: string;
23
- uid?: string;
24
- type: TypeEnum;
25
- tags: string[];
26
- lang: LangEnum;
27
- url?: string;
28
- slug?: string;
29
- isBroken?: boolean;
30
- data?: DataInterface;
31
- }
@@ -1,9 +0,0 @@
1
- import type { FieldState } from "./types";
2
- /**
3
- * A date field.
4
- *
5
- * @typeParam State - State of the field which determines its shape.
6
- *
7
- * @see More details: {@link https://prismic.io/docs/date}
8
- */
9
- export type DateField<State extends FieldState = FieldState> = State extends "empty" ? null : `${number}-${number}-${number}`;