@prismicio/client 7.20.2 → 7.20.3

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 (250) hide show
  1. package/dist/Client.cjs +120 -132
  2. package/dist/Client.cjs.map +1 -1
  3. package/dist/Client.d.ts +7 -7
  4. package/dist/Client.js +120 -132
  5. package/dist/Client.js.map +1 -1
  6. package/dist/Migration.cjs +83 -101
  7. package/dist/Migration.cjs.map +1 -1
  8. package/dist/Migration.d.ts +9 -9
  9. package/dist/Migration.js +83 -101
  10. package/dist/Migration.js.map +1 -1
  11. package/dist/WriteClient.cjs +117 -98
  12. package/dist/WriteClient.cjs.map +1 -1
  13. package/dist/WriteClient.d.ts +6 -6
  14. package/dist/WriteClient.js +117 -98
  15. package/dist/WriteClient.js.map +1 -1
  16. package/dist/buildQueryURL.cjs.map +1 -1
  17. package/dist/buildQueryURL.js.map +1 -1
  18. package/dist/createClient.cjs.map +1 -1
  19. package/dist/createClient.d.ts +2 -2
  20. package/dist/createMigration.cjs.map +1 -1
  21. package/dist/createMigration.d.ts +2 -2
  22. package/dist/createMigration.js.map +1 -1
  23. package/dist/createWriteClient.cjs.map +1 -1
  24. package/dist/createWriteClient.d.ts +2 -2
  25. package/dist/errors/ForbiddenError.d.ts +1 -1
  26. package/dist/errors/InvalidDataError.d.ts +1 -1
  27. package/dist/errors/NotFoundError.d.ts +1 -1
  28. package/dist/errors/ParsingError.d.ts +1 -1
  29. package/dist/errors/PreviewTokenExpired.d.ts +1 -1
  30. package/dist/errors/PrismicError.cjs +2 -5
  31. package/dist/errors/PrismicError.cjs.map +1 -1
  32. package/dist/errors/PrismicError.js +2 -5
  33. package/dist/errors/PrismicError.js.map +1 -1
  34. package/dist/errors/RefExpiredError.d.ts +1 -1
  35. package/dist/errors/RefNotFoundError.d.ts +1 -1
  36. package/dist/errors/RepositoryNotFoundError.d.ts +1 -1
  37. package/dist/filter.cjs.map +1 -1
  38. package/dist/filter.js.map +1 -1
  39. package/dist/getGraphQLEndpoint.cjs.map +1 -1
  40. package/dist/getGraphQLEndpoint.js.map +1 -1
  41. package/dist/getRepositoryEndpoint.cjs.map +1 -1
  42. package/dist/getRepositoryEndpoint.js.map +1 -1
  43. package/dist/getRepositoryName.cjs.map +1 -1
  44. package/dist/getRepositoryName.js.map +1 -1
  45. package/dist/getToolbarSrc.cjs.map +1 -1
  46. package/dist/getToolbarSrc.js.map +1 -1
  47. package/dist/helpers/asDate.cjs.map +1 -1
  48. package/dist/helpers/asDate.d.ts +2 -2
  49. package/dist/helpers/asDate.js.map +1 -1
  50. package/dist/helpers/asHTML.cjs +22 -22
  51. package/dist/helpers/asHTML.cjs.map +1 -1
  52. package/dist/helpers/asHTML.d.ts +3 -3
  53. package/dist/helpers/asHTML.js +22 -22
  54. package/dist/helpers/asHTML.js.map +1 -1
  55. package/dist/helpers/asImagePixelDensitySrcSet.cjs.map +1 -1
  56. package/dist/helpers/asImagePixelDensitySrcSet.d.ts +1 -1
  57. package/dist/helpers/asImagePixelDensitySrcSet.js.map +1 -1
  58. package/dist/helpers/asImageSrc.cjs.map +1 -1
  59. package/dist/helpers/asImageSrc.d.ts +1 -1
  60. package/dist/helpers/asImageSrc.js.map +1 -1
  61. package/dist/helpers/asImageWidthSrcSet.cjs.map +1 -1
  62. package/dist/helpers/asImageWidthSrcSet.d.ts +1 -1
  63. package/dist/helpers/asImageWidthSrcSet.js.map +1 -1
  64. package/dist/helpers/asLink.cjs.map +1 -1
  65. package/dist/helpers/asLink.d.ts +4 -4
  66. package/dist/helpers/asLink.js.map +1 -1
  67. package/dist/helpers/asLinkAttrs.cjs.map +1 -1
  68. package/dist/helpers/asLinkAttrs.d.ts +5 -5
  69. package/dist/helpers/asLinkAttrs.js.map +1 -1
  70. package/dist/helpers/asText.cjs.map +1 -1
  71. package/dist/helpers/asText.d.ts +1 -1
  72. package/dist/helpers/asText.js.map +1 -1
  73. package/dist/helpers/documentToLinkField.cjs +1 -2
  74. package/dist/helpers/documentToLinkField.cjs.map +1 -1
  75. package/dist/helpers/documentToLinkField.d.ts +2 -2
  76. package/dist/helpers/documentToLinkField.js +1 -2
  77. package/dist/helpers/documentToLinkField.js.map +1 -1
  78. package/dist/helpers/isFilled.cjs.map +1 -1
  79. package/dist/helpers/isFilled.d.ts +21 -21
  80. package/dist/helpers/isFilled.js.map +1 -1
  81. package/dist/helpers/mapSliceZone.cjs.map +1 -1
  82. package/dist/helpers/mapSliceZone.d.ts +1 -1
  83. package/dist/helpers/mapSliceZone.js.map +1 -1
  84. package/dist/index.cjs.map +1 -1
  85. package/dist/index.d.ts +120 -120
  86. package/dist/index.js.map +1 -1
  87. package/dist/isRepositoryEndpoint.cjs.map +1 -1
  88. package/dist/isRepositoryEndpoint.js.map +1 -1
  89. package/dist/isRepositoryName.cjs.map +1 -1
  90. package/dist/isRepositoryName.js.map +1 -1
  91. package/dist/lib/appendFilters.cjs.map +1 -1
  92. package/dist/lib/appendFilters.js.map +1 -1
  93. package/dist/lib/castArray.cjs.map +1 -1
  94. package/dist/lib/castArray.js.map +1 -1
  95. package/dist/lib/castThunk.cjs.map +1 -1
  96. package/dist/lib/castThunk.js.map +1 -1
  97. package/dist/lib/devMsg.cjs.map +1 -1
  98. package/dist/lib/devMsg.js.map +1 -1
  99. package/dist/lib/escapeHTML.cjs.map +1 -1
  100. package/dist/lib/escapeHTML.js.map +1 -1
  101. package/dist/lib/everyTagFilter.cjs.map +1 -1
  102. package/dist/lib/everyTagFilter.js.map +1 -1
  103. package/dist/lib/findMasterRef.cjs.map +1 -1
  104. package/dist/lib/findMasterRef.d.ts +1 -1
  105. package/dist/lib/findMasterRef.js.map +1 -1
  106. package/dist/lib/findRef.cjs.map +1 -1
  107. package/dist/lib/findRef.d.ts +1 -1
  108. package/dist/lib/findRef.js.map +1 -1
  109. package/dist/lib/findRefByID.cjs.map +1 -1
  110. package/dist/lib/findRefByID.d.ts +1 -1
  111. package/dist/lib/findRefByID.js.map +1 -1
  112. package/dist/lib/findRefByLabel.cjs.map +1 -1
  113. package/dist/lib/findRefByLabel.d.ts +1 -1
  114. package/dist/lib/findRefByLabel.js.map +1 -1
  115. package/dist/lib/getOptionalLinkProperties.cjs.map +1 -1
  116. package/dist/lib/getOptionalLinkProperties.d.ts +1 -1
  117. package/dist/lib/getOptionalLinkProperties.js.map +1 -1
  118. package/dist/lib/getPreviewCookie.cjs.map +1 -1
  119. package/dist/lib/getPreviewCookie.js.map +1 -1
  120. package/dist/lib/isInternalURL.cjs.map +1 -1
  121. package/dist/lib/isInternalURL.js.map +1 -1
  122. package/dist/lib/isMigrationValue.cjs.map +1 -1
  123. package/dist/lib/isMigrationValue.d.ts +8 -8
  124. package/dist/lib/isMigrationValue.js.map +1 -1
  125. package/dist/lib/isValue.cjs.map +1 -1
  126. package/dist/lib/isValue.d.ts +10 -10
  127. package/dist/lib/isValue.js.map +1 -1
  128. package/dist/lib/minifyGraphQLQuery.cjs.map +1 -1
  129. package/dist/lib/minifyGraphQLQuery.js.map +1 -1
  130. package/dist/lib/pLimit.cjs +3 -4
  131. package/dist/lib/pLimit.cjs.map +1 -1
  132. package/dist/lib/pLimit.js +3 -4
  133. package/dist/lib/pLimit.js.map +1 -1
  134. package/dist/lib/request.cjs +8 -10
  135. package/dist/lib/request.cjs.map +1 -1
  136. package/dist/lib/request.js +8 -10
  137. package/dist/lib/request.js.map +1 -1
  138. package/dist/lib/resolveMigrationDocumentData.cjs +4 -6
  139. package/dist/lib/resolveMigrationDocumentData.cjs.map +1 -1
  140. package/dist/lib/resolveMigrationDocumentData.d.ts +8 -8
  141. package/dist/lib/resolveMigrationDocumentData.js +4 -6
  142. package/dist/lib/resolveMigrationDocumentData.js.map +1 -1
  143. package/dist/lib/serializerHelpers.cjs +2 -2
  144. package/dist/lib/serializerHelpers.cjs.map +1 -1
  145. package/dist/lib/serializerHelpers.d.ts +3 -3
  146. package/dist/lib/serializerHelpers.js +2 -2
  147. package/dist/lib/serializerHelpers.js.map +1 -1
  148. package/dist/lib/someTagsFilter.cjs.map +1 -1
  149. package/dist/lib/someTagsFilter.js.map +1 -1
  150. package/dist/lib/throttledLog.cjs.map +1 -1
  151. package/dist/lib/throttledLog.js.map +1 -1
  152. package/dist/lib/typeFilter.cjs.map +1 -1
  153. package/dist/lib/typeFilter.js.map +1 -1
  154. package/dist/lib/validateAssetMetadata.cjs.map +1 -1
  155. package/dist/lib/validateAssetMetadata.d.ts +1 -1
  156. package/dist/lib/validateAssetMetadata.js.map +1 -1
  157. package/dist/package.json.cjs +1 -1
  158. package/dist/package.json.js +1 -1
  159. package/dist/richtext/asText.cjs.map +1 -1
  160. package/dist/richtext/asText.d.ts +1 -1
  161. package/dist/richtext/asText.js.map +1 -1
  162. package/dist/richtext/asTree.cjs.map +1 -1
  163. package/dist/richtext/asTree.d.ts +2 -2
  164. package/dist/richtext/asTree.js.map +1 -1
  165. package/dist/richtext/composeSerializers.cjs.map +1 -1
  166. package/dist/richtext/composeSerializers.d.ts +1 -1
  167. package/dist/richtext/composeSerializers.js.map +1 -1
  168. package/dist/richtext/index.d.ts +7 -7
  169. package/dist/richtext/serialize.cjs.map +1 -1
  170. package/dist/richtext/serialize.d.ts +2 -2
  171. package/dist/richtext/serialize.js.map +1 -1
  172. package/dist/richtext/types.d.ts +1 -1
  173. package/dist/richtext/wrapMapSerializer.cjs.map +1 -1
  174. package/dist/richtext/wrapMapSerializer.d.ts +1 -1
  175. package/dist/richtext/wrapMapSerializer.js.map +1 -1
  176. package/dist/types/api/asset/asset.d.ts +1 -1
  177. package/dist/types/api/integration.d.ts +1 -1
  178. package/dist/types/api/migration/document.d.ts +1 -1
  179. package/dist/types/api/query.d.ts +1 -1
  180. package/dist/types/api/release.d.ts +1 -1
  181. package/dist/types/api/repository.d.ts +1 -1
  182. package/dist/types/migration/Asset.cjs +12 -15
  183. package/dist/types/migration/Asset.cjs.map +1 -1
  184. package/dist/types/migration/Asset.d.ts +7 -7
  185. package/dist/types/migration/Asset.js +12 -15
  186. package/dist/types/migration/Asset.js.map +1 -1
  187. package/dist/types/migration/ContentRelationship.d.ts +3 -3
  188. package/dist/types/migration/Document.cjs +24 -27
  189. package/dist/types/migration/Document.cjs.map +1 -1
  190. package/dist/types/migration/Document.d.ts +9 -9
  191. package/dist/types/migration/Document.js +24 -27
  192. package/dist/types/migration/Document.js.map +1 -1
  193. package/dist/types/migration/Link.d.ts +1 -1
  194. package/dist/types/model/boolean.d.ts +1 -1
  195. package/dist/types/model/color.d.ts +1 -1
  196. package/dist/types/model/contentRelationship.d.ts +3 -2
  197. package/dist/types/model/customType.d.ts +1 -1
  198. package/dist/types/model/date.d.ts +1 -1
  199. package/dist/types/model/embed.d.ts +1 -1
  200. package/dist/types/model/geoPoint.d.ts +1 -1
  201. package/dist/types/model/group.d.ts +1 -1
  202. package/dist/types/model/image.d.ts +1 -1
  203. package/dist/types/model/integration.d.ts +1 -1
  204. package/dist/types/model/keyText.d.ts +1 -1
  205. package/dist/types/model/link.d.ts +1 -1
  206. package/dist/types/model/linkToMedia.d.ts +2 -2
  207. package/dist/types/model/number.d.ts +1 -1
  208. package/dist/types/model/range.d.ts +1 -1
  209. package/dist/types/model/richText.d.ts +1 -1
  210. package/dist/types/model/select.d.ts +1 -1
  211. package/dist/types/model/separator.d.ts +1 -1
  212. package/dist/types/model/sharedSlice.d.ts +2 -2
  213. package/dist/types/model/sharedSliceVariation.d.ts +1 -1
  214. package/dist/types/model/slice.d.ts +3 -3
  215. package/dist/types/model/sliceZone.d.ts +2 -2
  216. package/dist/types/model/table.d.ts +1 -1
  217. package/dist/types/model/timestamp.d.ts +1 -1
  218. package/dist/types/model/title.d.ts +1 -1
  219. package/dist/types/model/types.d.ts +22 -22
  220. package/dist/types/model/uid.d.ts +1 -1
  221. package/dist/types/value/color.d.ts +1 -1
  222. package/dist/types/value/contentRelationship.d.ts +3 -3
  223. package/dist/types/value/date.d.ts +1 -1
  224. package/dist/types/value/document.d.ts +4 -4
  225. package/dist/types/value/embed.d.ts +1 -1
  226. package/dist/types/value/geoPoint.d.ts +1 -1
  227. package/dist/types/value/group.d.ts +1 -1
  228. package/dist/types/value/image.d.ts +1 -1
  229. package/dist/types/value/integration.d.ts +1 -1
  230. package/dist/types/value/keyText.d.ts +1 -1
  231. package/dist/types/value/link.d.ts +5 -5
  232. package/dist/types/value/linkToMedia.d.ts +2 -2
  233. package/dist/types/value/number.d.ts +1 -1
  234. package/dist/types/value/richText.d.ts +3 -3
  235. package/dist/types/value/select.d.ts +1 -1
  236. package/dist/types/value/sharedSlice.d.ts +1 -1
  237. package/dist/types/value/sharedSliceVariation.d.ts +1 -1
  238. package/dist/types/value/slice.d.ts +1 -1
  239. package/dist/types/value/sliceZone.d.ts +3 -3
  240. package/dist/types/value/table.d.ts +2 -2
  241. package/dist/types/value/timestamp.d.ts +2 -2
  242. package/dist/types/value/title.d.ts +2 -2
  243. package/dist/types/value/types.d.ts +18 -18
  244. package/dist/types/webhook/apiUpdate.d.ts +1 -1
  245. package/dist/types/webhook/testTrigger.d.ts +1 -1
  246. package/dist/types/webhook/types.d.ts +2 -2
  247. package/package.json +11 -11
  248. package/src/index.ts +1 -1
  249. package/src/types/migration/Asset.ts +10 -2
  250. package/src/types/model/contentRelationship.ts +1 -0
@@ -1,4 +1,4 @@
1
- import type { CustomTypeModelFieldType } from "./types";
1
+ import type { CustomTypeModelFieldType } from "./types.js";
2
2
  /**
3
3
  * A boolean custom type field.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { CustomTypeModelFieldType } from "./types";
1
+ import type { CustomTypeModelFieldType } from "./types.js";
2
2
  /**
3
3
  * A color custom type field.
4
4
  *
@@ -1,5 +1,5 @@
1
- import type { CustomTypeModelFieldType } from "./types";
2
- import type { CustomTypeModelLinkSelectType } from "./link";
1
+ import type { CustomTypeModelFieldType } from "./types.js";
2
+ import type { CustomTypeModelLinkSelectType } from "./link.js";
3
3
  /**
4
4
  * @internal
5
5
  */
@@ -42,6 +42,7 @@ export type CustomTypeModelFetchCustomTypeLevel1 = {
42
42
  */
43
43
  export interface CustomTypeModelContentRelationshipField<CustomTypes extends string | CustomTypeModelFetchCustomTypeLevel1 = string | CustomTypeModelFetchCustomTypeLevel1, Tags extends string = string> {
44
44
  type: typeof CustomTypeModelFieldType.Link;
45
+ fieldset?: string | null;
45
46
  config?: {
46
47
  label?: string | null;
47
48
  placeholder?: string;
@@ -1,4 +1,4 @@
1
- import type { CustomTypeModelField } from "./types";
1
+ import type { CustomTypeModelField } from "./types.js";
2
2
  /**
3
3
  * A Prismic custom type model.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { CustomTypeModelFieldType } from "./types";
1
+ import type { CustomTypeModelFieldType } from "./types.js";
2
2
  /**
3
3
  * A date custom type field.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { CustomTypeModelFieldType } from "./types";
1
+ import type { CustomTypeModelFieldType } from "./types.js";
2
2
  /**
3
3
  * An embed custom type field.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { CustomTypeModelFieldType } from "./types";
1
+ import type { CustomTypeModelFieldType } from "./types.js";
2
2
  /**
3
3
  * A geopoint custom type field.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { CustomTypeModelFieldForGroup, CustomTypeModelFieldForNestedGroup, CustomTypeModelFieldType } from "./types";
1
+ import type { CustomTypeModelFieldForGroup, CustomTypeModelFieldForNestedGroup, CustomTypeModelFieldType } from "./types.js";
2
2
  /**
3
3
  * A group custom type field.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { CustomTypeModelFieldType } from "./types";
1
+ import type { CustomTypeModelFieldType } from "./types.js";
2
2
  /**
3
3
  * Dimension constraints for an image custom type field.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { CustomTypeModelFieldType } from "./types";
1
+ import type { CustomTypeModelFieldType } from "./types.js";
2
2
  /**
3
3
  * An integration custom type field.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { CustomTypeModelFieldType } from "./types";
1
+ import type { CustomTypeModelFieldType } from "./types.js";
2
2
  /**
3
3
  * A key text custom type field.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { CustomTypeModelFieldType } from "./types";
1
+ import type { CustomTypeModelFieldType } from "./types.js";
2
2
  /**
3
3
  * A link custom type field.
4
4
  *
@@ -1,5 +1,5 @@
1
- import type { CustomTypeModelFieldType } from "./types";
2
- import type { CustomTypeModelLinkSelectType } from "./link";
1
+ import type { CustomTypeModelFieldType } from "./types.js";
2
+ import type { CustomTypeModelLinkSelectType } from "./link.js";
3
3
  /**
4
4
  * A link to media custom type field.
5
5
  *
@@ -1,4 +1,4 @@
1
- import type { CustomTypeModelFieldType } from "./types";
1
+ import type { CustomTypeModelFieldType } from "./types.js";
2
2
  /**
3
3
  * A number custom type field.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { CustomTypeModelFieldType } from "./types";
1
+ import type { CustomTypeModelFieldType } from "./types.js";
2
2
  /**
3
3
  * @deprecated - Legacy field. Use `CustomTypeModelNumberField` instead.
4
4
  */
@@ -1,4 +1,4 @@
1
- import type { CustomTypeModelFieldType } from "./types";
1
+ import type { CustomTypeModelFieldType } from "./types.js";
2
2
  /**
3
3
  * A rich text custom type field.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { CustomTypeModelFieldType } from "./types";
1
+ import type { CustomTypeModelFieldType } from "./types.js";
2
2
  /**
3
3
  * A select custom type field.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { CustomTypeModelFieldType } from "./types";
1
+ import type { CustomTypeModelFieldType } from "./types.js";
2
2
  /**
3
3
  * @deprecated - Legacy field. Do not use.
4
4
  */
@@ -1,5 +1,5 @@
1
- import type { SharedSliceModelVariation } from "./sharedSliceVariation";
2
- import type { CustomTypeModelSliceType } from "./sliceZone";
1
+ import type { SharedSliceModelVariation } from "./sharedSliceVariation.js";
2
+ import type { CustomTypeModelSliceType } from "./sliceZone.js";
3
3
  /**
4
4
  * A Prismic shared Slice model.
5
5
  *
@@ -1,4 +1,4 @@
1
- import type { CustomTypeModelFieldForNestedGroup, CustomTypeModelFieldForSlicePrimary } from "./types";
1
+ import type { CustomTypeModelFieldForNestedGroup, CustomTypeModelFieldForSlicePrimary } from "./types.js";
2
2
  /**
3
3
  * A shared Slice variation.
4
4
  *
@@ -1,6 +1,6 @@
1
- import type { CustomTypeModelFieldForNestedGroup } from "./types";
2
- import type { CustomTypeModelNestedGroupField } from "./group";
3
- import type { CustomTypeModelSliceType } from "./sliceZone";
1
+ import type { CustomTypeModelFieldForNestedGroup } from "./types.js";
2
+ import type { CustomTypeModelNestedGroupField } from "./group.js";
3
+ import type { CustomTypeModelSliceType } from "./sliceZone.js";
4
4
  /**
5
5
  * A Slice for a custom type.
6
6
  *
@@ -1,5 +1,5 @@
1
- import type { CustomTypeModelFieldType } from "./types";
2
- import type { CustomTypeModelLegacySlice, CustomTypeModelSlice } from "./slice";
1
+ import type { CustomTypeModelFieldType } from "./types.js";
2
+ import type { CustomTypeModelLegacySlice, CustomTypeModelSlice } from "./slice.js";
3
3
  /**
4
4
  * A Slice Zone custom type field.
5
5
  *
@@ -1,4 +1,4 @@
1
- import type { CustomTypeModelFieldType } from "./types";
1
+ import type { CustomTypeModelFieldType } from "./types.js";
2
2
  /**
3
3
  * A table custom type field.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { CustomTypeModelFieldType } from "./types";
1
+ import type { CustomTypeModelFieldType } from "./types.js";
2
2
  /**
3
3
  * A timestamp custom type field.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { CustomTypeModelRichTextSingleField } from "./richText";
1
+ import type { CustomTypeModelRichTextSingleField } from "./richText.js";
2
2
  /**
3
3
  * A title custom type field.
4
4
  *
@@ -1,25 +1,25 @@
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";
1
+ import type { CustomTypeModelBooleanField } from "./boolean.js";
2
+ import type { CustomTypeModelColorField } from "./color.js";
3
+ import type { CustomTypeModelContentRelationshipField } from "./contentRelationship.js";
4
+ import type { CustomTypeModelDateField } from "./date.js";
5
+ import type { CustomTypeModelEmbedField } from "./embed.js";
6
+ import type { CustomTypeModelGeoPointField } from "./geoPoint.js";
7
+ import type { CustomTypeModelGroupField, CustomTypeModelNestedGroupField } from "./group.js";
8
+ import type { CustomTypeModelImageField } from "./image.js";
9
+ import type { CustomTypeModelIntegrationField } from "./integration.js";
10
+ import type { CustomTypeModelKeyTextField } from "./keyText.js";
11
+ import type { CustomTypeModelLinkField } from "./link.js";
12
+ import type { CustomTypeModelLinkToMediaField } from "./linkToMedia.js";
13
+ import type { CustomTypeModelNumberField } from "./number.js";
14
+ import type { CustomTypeModelRangeField } from "./range.js";
15
+ import type { CustomTypeModelRichTextField } from "./richText.js";
16
+ import type { CustomTypeModelSelectField } from "./select.js";
17
+ import type { CustomTypeModelSeparatorField } from "./separator.js";
18
+ import type { CustomTypeModelSliceZoneField } from "./sliceZone.js";
19
+ import type { CustomTypeModelTableField } from "./table.js";
20
+ import type { CustomTypeModelTimestampField } from "./timestamp.js";
21
+ import type { CustomTypeModelTitleField } from "./title.js";
22
+ import type { CustomTypeModelUIDField } from "./uid.js";
23
23
  /**
24
24
  * Type identifier for a custom type field.
25
25
  */
@@ -1,4 +1,4 @@
1
- import type { CustomTypeModelFieldType } from "./types";
1
+ import type { CustomTypeModelFieldType } from "./types.js";
2
2
  /**
3
3
  * A UID custom type field.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { FieldState } from "./types";
1
+ import type { FieldState } from "./types.js";
2
2
  /**
3
3
  * A color field.
4
4
  *
@@ -1,6 +1,6 @@
1
- import type { AnyRegularField, FieldState } from "./types";
2
- import type { GroupField } from "./group";
3
- import type { SliceZone } from "./sliceZone";
1
+ import type { AnyRegularField, FieldState } from "./types.js";
2
+ import type { GroupField } from "./group.js";
3
+ import type { SliceZone } from "./sliceZone.js";
4
4
  /**
5
5
  * Field for related documents
6
6
  *
@@ -1,4 +1,4 @@
1
- import type { FieldState } from "./types";
1
+ import type { FieldState } from "./types.js";
2
2
  /**
3
3
  * A date field.
4
4
  *
@@ -1,7 +1,7 @@
1
- import type { AnyRegularField } from "./types";
2
- import type { GroupField } from "./group";
3
- import type { SliceZone } from "./sliceZone";
4
- import type { TimestampField } from "./timestamp";
1
+ import type { AnyRegularField } from "./types.js";
2
+ import type { GroupField } from "./group.js";
3
+ import type { SliceZone } from "./sliceZone.js";
4
+ import type { TimestampField } from "./timestamp.js";
5
5
  /**
6
6
  * Document metadata for a translation of a Prismic document.
7
7
  */
@@ -1,4 +1,4 @@
1
- import type { EmptyObjectField, FieldState } from "./types";
1
+ import type { EmptyObjectField, FieldState } from "./types.js";
2
2
  /**
3
3
  * oEmbed 1.0 possible types.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { EmptyObjectField, FieldState } from "./types";
1
+ import type { EmptyObjectField, FieldState } from "./types.js";
2
2
  /**
3
3
  * A geopoint field.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { AnyRegularField, FieldState } from "./types";
1
+ import type { AnyRegularField, FieldState } from "./types.js";
2
2
  /**
3
3
  * A group field.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { FieldState, Simplify } from "./types";
1
+ import type { FieldState, Simplify } from "./types.js";
2
2
  /**
3
3
  * An individual image within an image field. The base image and each thumbnail
4
4
  * uses this type.
@@ -1,4 +1,4 @@
1
- import type { FieldState } from "./types";
1
+ import type { FieldState } from "./types.js";
2
2
  /**
3
3
  * An integration field.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { FieldState } from "./types";
1
+ import type { FieldState } from "./types.js";
2
2
  /**
3
3
  * A key text field
4
4
  *
@@ -1,8 +1,8 @@
1
- import type { AnyRegularField, FieldState } from "./types";
2
- import type { FilledContentRelationshipField } from "./contentRelationship";
3
- import type { GroupField } from "./group";
4
- import type { FilledLinkToMediaField } from "./linkToMedia";
5
- import type { SliceZone } from "./sliceZone";
1
+ import type { AnyRegularField, FieldState } from "./types.js";
2
+ import type { FilledContentRelationshipField } from "./contentRelationship.js";
3
+ import type { GroupField } from "./group.js";
4
+ import type { FilledLinkToMediaField } from "./linkToMedia.js";
5
+ import type { SliceZone } from "./sliceZone.js";
6
6
  /**
7
7
  * Link types
8
8
  */
@@ -1,5 +1,5 @@
1
- import type { FieldState } from "./types";
2
- import type { OptionalLinkProperties } from "./link";
1
+ import type { FieldState } from "./types.js";
2
+ import type { OptionalLinkProperties } from "./link.js";
3
3
  /**
4
4
  * A link field that points to media.
5
5
  *
@@ -1,4 +1,4 @@
1
- import type { FieldState } from "./types";
1
+ import type { FieldState } from "./types.js";
2
2
  /**
3
3
  * A number field.
4
4
  *
@@ -1,6 +1,6 @@
1
- import type { FieldState } from "./types";
2
- import type { EmbedField } from "./embed";
3
- import type { FilledLinkField } from "./link";
1
+ import type { FieldState } from "./types.js";
2
+ import type { EmbedField } from "./embed.js";
3
+ import type { FilledLinkField } from "./link.js";
4
4
  /**
5
5
  * Types enum for RichTextNodes
6
6
  *
@@ -1,4 +1,4 @@
1
- import type { FieldState } from "./types";
1
+ import type { FieldState } from "./types.js";
2
2
  /**
3
3
  * A select field.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { SharedSliceVariation } from "./sharedSliceVariation";
1
+ import type { SharedSliceVariation } from "./sharedSliceVariation.js";
2
2
  /**
3
3
  * A shared Slice.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { AnyRegularField, AnySlicePrimaryField } from "./types";
1
+ import type { AnyRegularField, AnySlicePrimaryField } from "./types.js";
2
2
  /**
3
3
  * A shared Slice variation.
4
4
  */
@@ -1,4 +1,4 @@
1
- import type { AnyRegularField } from "./types";
1
+ import type { AnyRegularField } from "./types.js";
2
2
  /**
3
3
  * A Slice - sections of your webpages.
4
4
  *
@@ -1,6 +1,6 @@
1
- import type { FieldState } from "./types";
2
- import type { SharedSlice } from "./sharedSlice";
3
- import type { Slice } from "./slice";
1
+ import type { FieldState } from "./types.js";
2
+ import type { SharedSlice } from "./sharedSlice.js";
3
+ import type { Slice } from "./slice.js";
4
4
  /**
5
5
  * Prismic Slices are sections of your website. Prismic documents contain a
6
6
  * dynamic "Slice Zone" that allows content creators to add, edit, and rearrange
@@ -1,5 +1,5 @@
1
- import type { FieldState } from "./types";
2
- import type { RichTextField } from "./richText";
1
+ import type { FieldState } from "./types.js";
2
+ import type { RichTextField } from "./richText.js";
3
3
  /**
4
4
  * A table field.
5
5
  *
@@ -1,5 +1,5 @@
1
- import type { FieldState } from "./types";
2
- import type { DateField } from "./date";
1
+ import type { FieldState } from "./types.js";
2
+ import type { DateField } from "./date.js";
3
3
  /**
4
4
  * A timestamp field.
5
5
  *
@@ -1,5 +1,5 @@
1
- import type { FieldState } from "./types";
2
- import type { RTHeading1Node, RTHeading2Node, RTHeading3Node, RTHeading4Node, RTHeading5Node, RTHeading6Node } from "./richText";
1
+ import type { FieldState } from "./types.js";
2
+ import type { RTHeading1Node, RTHeading2Node, RTHeading3Node, RTHeading4Node, RTHeading5Node, RTHeading6Node } from "./richText.js";
3
3
  /**
4
4
  * A title field.
5
5
  *
@@ -1,21 +1,21 @@
1
- import type { BooleanField } from "./boolean";
2
- import type { ColorField } from "./color";
3
- import type { ContentRelationshipField } from "./contentRelationship";
4
- import type { DateField } from "./date";
5
- import type { EmbedField } from "./embed";
6
- import type { GeoPointField } from "./geoPoint";
7
- import type { GroupField } from "./group";
8
- import type { ImageField } from "./image";
9
- import type { IntegrationField } from "./integration";
10
- import type { KeyTextField } from "./keyText";
11
- import type { LinkField } from "./link";
12
- import type { LinkToMediaField } from "./linkToMedia";
13
- import type { NumberField } from "./number";
14
- import type { RichTextField } from "./richText";
15
- import type { SelectField } from "./select";
16
- import type { TableField } from "./table";
17
- import type { TimestampField } from "./timestamp";
18
- import type { TitleField } from "./title";
1
+ import type { BooleanField } from "./boolean.js";
2
+ import type { ColorField } from "./color.js";
3
+ import type { ContentRelationshipField } from "./contentRelationship.js";
4
+ import type { DateField } from "./date.js";
5
+ import type { EmbedField } from "./embed.js";
6
+ import type { GeoPointField } from "./geoPoint.js";
7
+ import type { GroupField } from "./group.js";
8
+ import type { ImageField } from "./image.js";
9
+ import type { IntegrationField } from "./integration.js";
10
+ import type { KeyTextField } from "./keyText.js";
11
+ import type { LinkField } from "./link.js";
12
+ import type { LinkToMediaField } from "./linkToMedia.js";
13
+ import type { NumberField } from "./number.js";
14
+ import type { RichTextField } from "./richText.js";
15
+ import type { SelectField } from "./select.js";
16
+ import type { TableField } from "./table.js";
17
+ import type { TimestampField } from "./timestamp.js";
18
+ import type { TitleField } from "./title.js";
19
19
  /**
20
20
  * Empty state for object-shaped fields.
21
21
  */
@@ -1,4 +1,4 @@
1
- import type { WebhookBodyBase, WebhookType } from "./types";
1
+ import type { WebhookBodyBase, WebhookType } from "./types.js";
2
2
  /**
3
3
  * Webhook payload sent when a Prismic repository content is updated.
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { WebhookBodyBase, WebhookType } from "./types";
1
+ import type { WebhookBodyBase, WebhookType } from "./types.js";
2
2
  /**
3
3
  * Webhook payload sent when a test webhook action is triggered.
4
4
  *
@@ -1,5 +1,5 @@
1
- import type { WebhookBodyAPIUpdate } from "./apiUpdate";
2
- import type { WebhookBodyTestTrigger } from "./testTrigger";
1
+ import type { WebhookBodyAPIUpdate } from "./apiUpdate.js";
2
+ import type { WebhookBodyTestTrigger } from "./testTrigger.js";
3
3
  export type WebhookBody = WebhookBodyAPIUpdate | WebhookBodyTestTrigger;
4
4
  /**
5
5
  * Types of Prismic Webhooks.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prismicio/client",
3
- "version": "7.20.2",
3
+ "version": "7.20.3",
4
4
  "description": "The official JavaScript + TypeScript client library for Prismic",
5
5
  "keywords": [
6
6
  "typescript",
@@ -83,28 +83,28 @@
83
83
  },
84
84
  "devDependencies": {
85
85
  "@prismicio/mock": "0.7.1",
86
- "@prismicio/types-internal": "^3.11.2",
86
+ "@prismicio/types-internal": "^3.16.1",
87
87
  "@size-limit/preset-small-lib": "^11.2.0",
88
88
  "@trivago/prettier-plugin-sort-imports": "^4.3.0",
89
89
  "@typescript-eslint/eslint-plugin": "^6.21.0",
90
90
  "@typescript-eslint/parser": "^6.21.0",
91
- "@vitest/coverage-v8": "^2.1.9",
91
+ "@vitest/coverage-v8": "^3.2.4",
92
92
  "abort-controller": "^3.0.0",
93
93
  "eslint": "^8.57.1",
94
- "eslint-config-prettier": "^9.1.0",
95
- "eslint-plugin-prettier": "^5.2.5",
94
+ "eslint-config-prettier": "^9.1.2",
95
+ "eslint-plugin-prettier": "^5.5.4",
96
96
  "eslint-plugin-tsdoc": "^0.3.0",
97
97
  "msw": "^1.3.5",
98
98
  "node-fetch": "^3.3.2",
99
- "prettier": "^3.5.3",
100
- "prettier-plugin-jsdoc": "1.3.2",
99
+ "prettier": "^3.6.2",
100
+ "prettier-plugin-jsdoc": "1.3.3",
101
101
  "size-limit": "^11.2.0",
102
102
  "standard-version": "^9.5.0",
103
103
  "ts-expect": "^1.3.0",
104
- "typescript": "^5.8.2",
105
- "vite": "^5.4.15",
106
- "vite-plugin-sdk": "^0.1.3",
107
- "vitest": "^2.1.9"
104
+ "typescript": "^5.9.3",
105
+ "vite": "^7.1.10",
106
+ "vite-plugin-sdk": "^0.1.5",
107
+ "vitest": "^3.2.4"
108
108
  },
109
109
  "engines": {
110
110
  "node": ">=14.15.0"
package/src/index.ts CHANGED
@@ -377,7 +377,7 @@ export type {
377
377
  export type { Tags } from "./types/api/tags"
378
378
 
379
379
  // Integration - Types representing Prismic's integration API.
380
- export {
380
+ export type {
381
381
  IntegrationAPIItem,
382
382
  IntegrationAPIResults,
383
383
  } from "./types/api/integration"
@@ -17,12 +17,20 @@ export type MigrationAssetConfig = {
17
17
  * `file` property. It is mainly used for deduplication within a `Migration`
18
18
  * instance.
19
19
  */
20
- id: string | URL | File | NonNullable<ConstructorParameters<File>[0]>[0]
20
+ id:
21
+ | string
22
+ | URL
23
+ | File
24
+ | NonNullable<ConstructorParameters<typeof File>[0]>[0]
21
25
 
22
26
  /**
23
27
  * File to be uploaded as an asset.
24
28
  */
25
- file: string | URL | File | NonNullable<ConstructorParameters<File>[0]>[0]
29
+ file:
30
+ | string
31
+ | URL
32
+ | File
33
+ | NonNullable<ConstructorParameters<typeof File>[0]>[0]
26
34
 
27
35
  /**
28
36
  * Filename of the asset.
@@ -58,6 +58,7 @@ export interface CustomTypeModelContentRelationshipField<
58
58
  Tags extends string = string,
59
59
  > {
60
60
  type: typeof CustomTypeModelFieldType.Link
61
+ fieldset?: string | null
61
62
  config?: {
62
63
  label?: string | null
63
64
  placeholder?: string