@prismicio/client 7.0.0-alpha.5 → 7.0.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. package/dist/buildQueryURL.cjs.map +1 -1
  2. package/dist/buildQueryURL.d.ts +15 -14
  3. package/dist/buildQueryURL.js.map +1 -1
  4. package/dist/createClient.cjs +63 -30
  5. package/dist/createClient.cjs.map +1 -1
  6. package/dist/createClient.d.ts +95 -48
  7. package/dist/createClient.js +63 -30
  8. package/dist/createClient.js.map +1 -1
  9. package/dist/filter.cjs +39 -39
  10. package/dist/filter.cjs.map +1 -1
  11. package/dist/filter.d.ts +39 -39
  12. package/dist/filter.js +39 -39
  13. package/dist/filter.js.map +1 -1
  14. package/dist/getGraphQLEndpoint.cjs.map +1 -1
  15. package/dist/getGraphQLEndpoint.d.ts +1 -0
  16. package/dist/getGraphQLEndpoint.js.map +1 -1
  17. package/dist/getRepositoryEndpoint.cjs.map +1 -1
  18. package/dist/getRepositoryEndpoint.d.ts +2 -0
  19. package/dist/getRepositoryEndpoint.js.map +1 -1
  20. package/dist/getRepositoryName.cjs.map +1 -1
  21. package/dist/getRepositoryName.d.ts +1 -0
  22. package/dist/getRepositoryName.js.map +1 -1
  23. package/dist/getToolbarSrc.cjs.map +1 -1
  24. package/dist/getToolbarSrc.d.ts +1 -1
  25. package/dist/getToolbarSrc.js.map +1 -1
  26. package/dist/helpers/asDate.cjs.map +1 -1
  27. package/dist/helpers/asDate.d.ts +3 -2
  28. package/dist/helpers/asDate.js.map +1 -1
  29. package/dist/helpers/asHTML.cjs.map +1 -1
  30. package/dist/helpers/asHTML.d.ts +34 -28
  31. package/dist/helpers/asHTML.js.map +1 -1
  32. package/dist/helpers/asImagePixelDensitySrcSet.cjs.map +1 -1
  33. package/dist/helpers/asImagePixelDensitySrcSet.d.ts +5 -5
  34. package/dist/helpers/asImagePixelDensitySrcSet.js.map +1 -1
  35. package/dist/helpers/asImageSrc.cjs.map +1 -1
  36. package/dist/helpers/asImageSrc.d.ts +3 -3
  37. package/dist/helpers/asImageSrc.js.map +1 -1
  38. package/dist/helpers/asImageWidthSrcSet.cjs.map +1 -1
  39. package/dist/helpers/asImageWidthSrcSet.d.ts +6 -6
  40. package/dist/helpers/asImageWidthSrcSet.js.map +1 -1
  41. package/dist/helpers/asLink.cjs.map +1 -1
  42. package/dist/helpers/asLink.d.ts +32 -23
  43. package/dist/helpers/asLink.js.map +1 -1
  44. package/dist/helpers/asLinkAttrs.cjs.map +1 -1
  45. package/dist/helpers/asLinkAttrs.d.ts +12 -7
  46. package/dist/helpers/asLinkAttrs.js.map +1 -1
  47. package/dist/helpers/asText.cjs.map +1 -1
  48. package/dist/helpers/asText.d.ts +18 -14
  49. package/dist/helpers/asText.js.map +1 -1
  50. package/dist/helpers/documentToLinkField.cjs.map +1 -1
  51. package/dist/helpers/documentToLinkField.d.ts +2 -0
  52. package/dist/helpers/documentToLinkField.js.map +1 -1
  53. package/dist/helpers/isFilled.cjs +3 -1
  54. package/dist/helpers/isFilled.cjs.map +1 -1
  55. package/dist/helpers/isFilled.d.ts +24 -20
  56. package/dist/helpers/isFilled.js +3 -1
  57. package/dist/helpers/isFilled.js.map +1 -1
  58. package/dist/index.cjs.map +1 -1
  59. package/dist/index.d.ts +13 -3
  60. package/dist/index.js.map +1 -1
  61. package/dist/lib/appendFilters.cjs.map +1 -1
  62. package/dist/lib/appendFilters.d.ts +4 -4
  63. package/dist/lib/appendFilters.js.map +1 -1
  64. package/dist/lib/castArray.cjs.map +1 -1
  65. package/dist/lib/castArray.d.ts +1 -0
  66. package/dist/lib/castArray.js.map +1 -1
  67. package/dist/lib/castThunk.cjs.map +1 -1
  68. package/dist/lib/castThunk.d.ts +2 -1
  69. package/dist/lib/castThunk.js.map +1 -1
  70. package/dist/lib/everyTagFilter.cjs.map +1 -1
  71. package/dist/lib/everyTagFilter.d.ts +2 -2
  72. package/dist/lib/everyTagFilter.js.map +1 -1
  73. package/dist/lib/findMasterRef.cjs.map +1 -1
  74. package/dist/lib/findMasterRef.d.ts +1 -0
  75. package/dist/lib/findMasterRef.js.map +1 -1
  76. package/dist/lib/findRef.cjs.map +1 -1
  77. package/dist/lib/findRef.d.ts +3 -2
  78. package/dist/lib/findRef.js.map +1 -1
  79. package/dist/lib/findRefByID.cjs.map +1 -1
  80. package/dist/lib/findRefByID.d.ts +1 -0
  81. package/dist/lib/findRefByID.js.map +1 -1
  82. package/dist/lib/findRefByLabel.cjs.map +1 -1
  83. package/dist/lib/findRefByLabel.d.ts +1 -0
  84. package/dist/lib/findRefByLabel.js.map +1 -1
  85. package/dist/package.json.cjs +1 -1
  86. package/dist/package.json.js +1 -1
  87. package/dist/types/api/query.d.ts +1 -0
  88. package/dist/types/api/release.d.ts +1 -0
  89. package/dist/types/api/repository.d.ts +2 -2
  90. package/dist/types/api/tags.d.ts +1 -0
  91. package/dist/types/model/boolean.d.ts +1 -1
  92. package/dist/types/model/color.d.ts +1 -1
  93. package/dist/types/model/contentRelationship.d.ts +2 -3
  94. package/dist/types/model/customType.d.ts +11 -11
  95. package/dist/types/model/date.d.ts +1 -1
  96. package/dist/types/model/embed.d.ts +1 -1
  97. package/dist/types/model/geoPoint.d.ts +1 -1
  98. package/dist/types/model/group.d.ts +1 -1
  99. package/dist/types/model/image.d.ts +3 -3
  100. package/dist/types/model/{integrationFields.d.ts → integration.d.ts} +3 -3
  101. package/dist/types/model/keyText.d.ts +1 -1
  102. package/dist/types/model/link.cjs.map +1 -1
  103. package/dist/types/model/link.d.ts +4 -6
  104. package/dist/types/model/link.js.map +1 -1
  105. package/dist/types/model/linkToMedia.d.ts +2 -3
  106. package/dist/types/model/number.d.ts +1 -1
  107. package/dist/types/model/richText.d.ts +3 -3
  108. package/dist/types/model/select.d.ts +1 -1
  109. package/dist/types/model/sharedSlice.d.ts +2 -2
  110. package/dist/types/model/sharedSliceVariation.d.ts +1 -1
  111. package/dist/types/model/slice.cjs.map +1 -1
  112. package/dist/types/model/slice.d.ts +1 -1
  113. package/dist/types/model/slice.js.map +1 -1
  114. package/dist/types/model/sliceZone.cjs.map +1 -1
  115. package/dist/types/model/sliceZone.d.ts +2 -2
  116. package/dist/types/model/sliceZone.js.map +1 -1
  117. package/dist/types/model/timestamp.d.ts +1 -1
  118. package/dist/types/model/title.d.ts +1 -1
  119. package/dist/types/model/types.cjs +5 -1
  120. package/dist/types/model/types.cjs.map +1 -1
  121. package/dist/types/model/types.d.ts +10 -6
  122. package/dist/types/model/types.js +5 -1
  123. package/dist/types/model/types.js.map +1 -1
  124. package/dist/types/model/uid.d.ts +1 -1
  125. package/dist/types/value/boolean.d.ts +1 -1
  126. package/dist/types/value/color.d.ts +2 -1
  127. package/dist/types/value/contentRelationship.d.ts +1 -1
  128. package/dist/types/value/date.d.ts +2 -1
  129. package/dist/types/value/document.d.ts +4 -4
  130. package/dist/types/value/embed.cjs.map +1 -1
  131. package/dist/types/value/embed.d.ts +2 -1
  132. package/dist/types/value/embed.js.map +1 -1
  133. package/dist/types/value/geoPoint.d.ts +2 -1
  134. package/dist/types/value/group.d.ts +1 -1
  135. package/dist/types/value/image.d.ts +5 -3
  136. package/dist/types/value/{integrationFields.d.ts → integration.d.ts} +3 -2
  137. package/dist/types/value/keyText.d.ts +2 -1
  138. package/dist/types/value/link.cjs.map +1 -1
  139. package/dist/types/value/link.d.ts +2 -2
  140. package/dist/types/value/link.js.map +1 -1
  141. package/dist/types/value/linkToMedia.d.ts +2 -2
  142. package/dist/types/value/number.d.ts +2 -1
  143. package/dist/types/value/richText.cjs.map +1 -1
  144. package/dist/types/value/richText.d.ts +26 -26
  145. package/dist/types/value/richText.js.map +1 -1
  146. package/dist/types/value/select.d.ts +2 -1
  147. package/dist/types/value/sharedSlice.d.ts +1 -1
  148. package/dist/types/value/sharedSliceVariation.d.ts +3 -0
  149. package/dist/types/value/slice.d.ts +1 -1
  150. package/dist/types/value/timestamp.d.ts +1 -1
  151. package/dist/types/value/title.d.ts +1 -1
  152. package/dist/types/value/types.d.ts +3 -2
  153. package/dist/types/webhook/apiUpdate.d.ts +1 -1
  154. package/package.json +4 -4
  155. package/src/buildQueryURL.ts +15 -14
  156. package/src/createClient.ts +112 -55
  157. package/src/filter.ts +43 -43
  158. package/src/getGraphQLEndpoint.ts +1 -0
  159. package/src/getRepositoryEndpoint.ts +2 -0
  160. package/src/getRepositoryName.ts +1 -0
  161. package/src/getToolbarSrc.ts +1 -1
  162. package/src/helpers/asDate.ts +3 -2
  163. package/src/helpers/asHTML.ts +36 -30
  164. package/src/helpers/asImagePixelDensitySrcSet.ts +5 -5
  165. package/src/helpers/asImageSrc.ts +3 -3
  166. package/src/helpers/asImageWidthSrcSet.ts +6 -6
  167. package/src/helpers/asLink.ts +36 -27
  168. package/src/helpers/asLinkAttrs.ts +12 -7
  169. package/src/helpers/asText.ts +18 -14
  170. package/src/helpers/documentToLinkField.ts +3 -1
  171. package/src/helpers/isFilled.ts +27 -22
  172. package/src/index.ts +20 -3
  173. package/src/lib/appendFilters.ts +4 -4
  174. package/src/lib/castArray.ts +1 -0
  175. package/src/lib/castThunk.ts +9 -2
  176. package/src/lib/everyTagFilter.ts +2 -2
  177. package/src/lib/findMasterRef.ts +1 -0
  178. package/src/lib/findRef.ts +3 -2
  179. package/src/lib/findRefByID.ts +1 -0
  180. package/src/lib/findRefByLabel.ts +1 -0
  181. package/src/types/api/query.ts +1 -0
  182. package/src/types/api/release.ts +1 -0
  183. package/src/types/api/repository.ts +2 -2
  184. package/src/types/api/tags.ts +1 -0
  185. package/src/types/model/boolean.ts +1 -1
  186. package/src/types/model/color.ts +1 -1
  187. package/src/types/model/contentRelationship.ts +2 -3
  188. package/src/types/model/customType.ts +11 -11
  189. package/src/types/model/date.ts +1 -1
  190. package/src/types/model/embed.ts +1 -1
  191. package/src/types/model/geoPoint.ts +1 -1
  192. package/src/types/model/group.ts +1 -1
  193. package/src/types/model/image.ts +3 -3
  194. package/src/types/model/{integrationFields.ts → integration.ts} +3 -3
  195. package/src/types/model/keyText.ts +1 -1
  196. package/src/types/model/link.ts +4 -6
  197. package/src/types/model/linkToMedia.ts +2 -3
  198. package/src/types/model/number.ts +1 -1
  199. package/src/types/model/richText.ts +3 -3
  200. package/src/types/model/select.ts +1 -1
  201. package/src/types/model/sharedSlice.ts +2 -2
  202. package/src/types/model/sharedSliceVariation.ts +1 -1
  203. package/src/types/model/slice.ts +1 -1
  204. package/src/types/model/sliceZone.ts +2 -2
  205. package/src/types/model/timestamp.ts +1 -1
  206. package/src/types/model/title.ts +1 -1
  207. package/src/types/model/types.ts +10 -6
  208. package/src/types/model/uid.ts +1 -1
  209. package/src/types/value/boolean.ts +1 -1
  210. package/src/types/value/color.ts +2 -1
  211. package/src/types/value/contentRelationship.ts +1 -1
  212. package/src/types/value/date.ts +2 -1
  213. package/src/types/value/document.ts +4 -4
  214. package/src/types/value/embed.ts +2 -1
  215. package/src/types/value/geoPoint.ts +2 -1
  216. package/src/types/value/group.ts +1 -1
  217. package/src/types/value/image.ts +6 -4
  218. package/src/types/value/{integrationFields.ts → integration.ts} +3 -2
  219. package/src/types/value/keyText.ts +2 -1
  220. package/src/types/value/link.ts +2 -2
  221. package/src/types/value/linkToMedia.ts +2 -2
  222. package/src/types/value/number.ts +2 -1
  223. package/src/types/value/richText.ts +26 -26
  224. package/src/types/value/select.ts +2 -1
  225. package/src/types/value/sharedSlice.ts +1 -1
  226. package/src/types/value/sharedSliceVariation.ts +3 -0
  227. package/src/types/value/slice.ts +1 -1
  228. package/src/types/value/timestamp.ts +1 -1
  229. package/src/types/value/title.ts +1 -1
  230. package/src/types/value/types.ts +3 -2
  231. package/src/types/webhook/apiUpdate.ts +1 -1
@@ -1,7 +1,7 @@
1
1
  import type { CustomTypeModelFieldType } from "./types";
2
2
 
3
3
  /**
4
- * A Key Text Custom Type field.
4
+ * A key text custom type field.
5
5
  *
6
6
  * More details: {@link https://prismic.io/docs/key-text}
7
7
  */
@@ -1,10 +1,9 @@
1
1
  import type { CustomTypeModelFieldType } from "./types";
2
2
 
3
3
  /**
4
- * A Link Custom Type field.
4
+ * A link custom type field.
5
5
  *
6
- * More details:
7
- * {@link https://prismic.io/docs/link}
6
+ * More details: {@link https://prismic.io/docs/link}
8
7
  */
9
8
  export interface CustomTypeModelLinkField {
10
9
  type: typeof CustomTypeModelFieldType.Link;
@@ -19,10 +18,9 @@ export interface CustomTypeModelLinkField {
19
18
  }
20
19
 
21
20
  /**
22
- * Type of a Link Custom Type field.
21
+ * Type of a link custom type field.
23
22
  *
24
- * More details:
25
- * {@link https://prismic.io/docs/link}
23
+ * More details: {@link https://prismic.io/docs/link}
26
24
  */
27
25
  export const CustomTypeModelLinkSelectType = {
28
26
  Document: "document",
@@ -3,10 +3,9 @@ import type { CustomTypeModelFieldType } from "./types";
3
3
  import type { CustomTypeModelLinkSelectType } from "./link";
4
4
 
5
5
  /**
6
- * A Link to Media Custom Type field.
6
+ * A link to media custom type field.
7
7
  *
8
- * More details:
9
- * {@link https://prismic.io/docs/media}
8
+ * More details: {@link https://prismic.io/docs/media}
10
9
  */
11
10
  export interface CustomTypeModelLinkToMediaField {
12
11
  type: typeof CustomTypeModelFieldType.Link;
@@ -1,7 +1,7 @@
1
1
  import type { CustomTypeModelFieldType } from "./types";
2
2
 
3
3
  /**
4
- * A Number Custom Type field.
4
+ * A number custom type field.
5
5
  *
6
6
  * More details: {@link https://prismic.io/docs/number}
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import type { CustomTypeModelFieldType } from "./types";
2
2
 
3
3
  /**
4
- * A Rich Text Custom Type field.
4
+ * A rich text custom type field.
5
5
  *
6
6
  * More details: {@link https://prismic.io/docs/rich-text-title}
7
7
  */
@@ -10,7 +10,7 @@ export type CustomTypeModelRichTextField =
10
10
  | CustomTypeModelRichTextSingleField;
11
11
 
12
12
  /**
13
- * A Rich Text Custom Type field which supports multiple blocks of content.
13
+ * A rich text custom type field which supports multiple blocks of content.
14
14
  *
15
15
  * More details: {@link https://prismic.io/docs/rich-text-title}
16
16
  */
@@ -25,7 +25,7 @@ export interface CustomTypeModelRichTextMultiField {
25
25
  }
26
26
 
27
27
  /**
28
- * A Rich Text Custom Type field which supports one block of content.
28
+ * A rich text custom type field which supports one block of content.
29
29
  *
30
30
  * More details: {@link https://prismic.io/docs/rich-text-title}
31
31
  */
@@ -1,7 +1,7 @@
1
1
  import type { CustomTypeModelFieldType } from "./types";
2
2
 
3
3
  /**
4
- * A Select Custom Type field.
4
+ * A select custom type field.
5
5
  *
6
6
  * More details: {@link https://prismic.io/docs/select}
7
7
  *
@@ -2,11 +2,11 @@ import type { SharedSliceModelVariation } from "./sharedSliceVariation";
2
2
  import type { CustomTypeModelSliceType } from "./sliceZone";
3
3
 
4
4
  /**
5
- * A Prismic Shared Slice model.
5
+ * A Prismic shared Slice model.
6
6
  *
7
7
  * More details: {@link https://prismic.io/docs/slice}
8
8
  *
9
- * @typeParam Variation - A variation for the Shared Slice.
9
+ * @typeParam Variation - A variation for the shared Slice.
10
10
  */
11
11
  export interface SharedSliceModel<
12
12
  ID extends string = string,
@@ -1,7 +1,7 @@
1
1
  import type { CustomTypeModelFieldForGroup } from "./types";
2
2
 
3
3
  /**
4
- * A Shared Slice variation.
4
+ * A shared Slice variation.
5
5
  *
6
6
  * More details: {@link https://prismic.io/docs/slice}
7
7
  *
@@ -4,7 +4,7 @@ import type { CustomTypeModelGroupField } from "./group";
4
4
  import type { CustomTypeModelSliceType } from "./sliceZone";
5
5
 
6
6
  /**
7
- * A Slice for a Custom Type.
7
+ * A Slice for a custom type.
8
8
  *
9
9
  * More details: {@link https://prismic.io/docs/slice}
10
10
  *
@@ -3,7 +3,7 @@ import type { CustomTypeModelFieldType } from "./types";
3
3
  import type { CustomTypeModelLegacySlice, CustomTypeModelSlice } from "./slice";
4
4
 
5
5
  /**
6
- * A Slice Zone Custom Type field.
6
+ * A Slice Zone custom type field.
7
7
  *
8
8
  * More details: {@link https://prismic.io/docs/slice}
9
9
  */
@@ -51,7 +51,7 @@ export const CustomTypeModelSliceType = {
51
51
  } as const;
52
52
 
53
53
  /**
54
- * A Shared Slice for a Custom Type.
54
+ * A shared Slice for a custom type.
55
55
  *
56
56
  * More details: {@link https://prismic.io/docs/slice}
57
57
  */
@@ -1,7 +1,7 @@
1
1
  import type { CustomTypeModelFieldType } from "./types";
2
2
 
3
3
  /**
4
- * A Timestamp Custom Type field.
4
+ * A timestamp custom type field.
5
5
  *
6
6
  * More details: {@link https://prismic.io/docs/timestamp}
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { CustomTypeModelRichTextSingleField } from "./richText";
2
2
 
3
3
  /**
4
- * A Title Custom Type field.
4
+ * A title custom type field.
5
5
  *
6
6
  * More details: {@link https://prismic.io/docs/rich-text-title}
7
7
  */
@@ -6,7 +6,7 @@ import type { CustomTypeModelEmbedField } from "./embed";
6
6
  import type { CustomTypeModelGeoPointField } from "./geoPoint";
7
7
  import type { CustomTypeModelGroupField } from "./group";
8
8
  import type { CustomTypeModelImageField } from "./image";
9
- import type { CustomTypeModelIntegrationFieldsField } from "./integrationFields";
9
+ import type { CustomTypeModelIntegrationField } from "./integration";
10
10
  import type { CustomTypeModelKeyTextField } from "./keyText";
11
11
  import type { CustomTypeModelLinkField } from "./link";
12
12
  import type { CustomTypeModelLinkToMediaField } from "./linkToMedia";
@@ -21,7 +21,7 @@ import type { CustomTypeModelTitleField } from "./title";
21
21
  import type { CustomTypeModelUIDField } from "./uid";
22
22
 
23
23
  /**
24
- * Type identifier for a Custom Type field.
24
+ * Type identifier for a custom type field.
25
25
  */
26
26
  export const CustomTypeModelFieldType = {
27
27
  Boolean: "Boolean",
@@ -31,7 +31,7 @@ export const CustomTypeModelFieldType = {
31
31
  GeoPoint: "GeoPoint",
32
32
  Group: "Group",
33
33
  Image: "Image",
34
- IntegrationFields: "IntegrationFields",
34
+ Integration: "IntegrationFields",
35
35
  Link: "Link",
36
36
  Number: "Number",
37
37
  Select: "Select",
@@ -40,6 +40,10 @@ export const CustomTypeModelFieldType = {
40
40
  Text: "Text",
41
41
  Timestamp: "Timestamp",
42
42
  UID: "UID",
43
+ /**
44
+ * @deprecated - Renamed to `Integration`.
45
+ */
46
+ IntegrationFields: "IntegrationFields",
43
47
  /**
44
48
  * @deprecated - Legacy field type. Use `Number` instead.
45
49
  */
@@ -55,7 +59,7 @@ export const CustomTypeModelFieldType = {
55
59
  } as const;
56
60
 
57
61
  /**
58
- * A Custom Type field.
62
+ * A custom type field.
59
63
  */
60
64
  export type CustomTypeModelField =
61
65
  | CustomTypeModelUIDField
@@ -64,7 +68,7 @@ export type CustomTypeModelField =
64
68
  | CustomTypeModelFieldForGroup;
65
69
 
66
70
  /**
67
- * Any Custom Type field that is valid for a Group field.
71
+ * Any custom type field that is valid for a group field.
68
72
  */
69
73
  export type CustomTypeModelFieldForGroup =
70
74
  | CustomTypeModelBooleanField
@@ -73,7 +77,7 @@ export type CustomTypeModelFieldForGroup =
73
77
  | CustomTypeModelEmbedField
74
78
  | CustomTypeModelGeoPointField
75
79
  | CustomTypeModelImageField
76
- | CustomTypeModelIntegrationFieldsField
80
+ | CustomTypeModelIntegrationField
77
81
  | CustomTypeModelContentRelationshipField
78
82
  | CustomTypeModelLinkField
79
83
  | CustomTypeModelLinkToMediaField
@@ -1,7 +1,7 @@
1
1
  import type { CustomTypeModelFieldType } from "./types";
2
2
 
3
3
  /**
4
- * A UID Custom Type field.
4
+ * A UID custom type field.
5
5
  *
6
6
  * More details: {@link https://prismic.io/docs/uid}
7
7
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * A Boolean field.
2
+ * A boolean field.
3
3
  *
4
4
  * @see More details: {@link https://prismic.io/docs/boolean}
5
5
  */
@@ -1,9 +1,10 @@
1
1
  import type { FieldState } from "./types";
2
2
 
3
3
  /**
4
- * A Color field.
4
+ * A color field.
5
5
  *
6
6
  * @typeParam State - State of the field which determines its shape.
7
+ *
7
8
  * @see More details: {@link https://prismic.io/docs/color}
8
9
  */
9
10
  export type ColorField<State extends FieldState = FieldState> =
@@ -25,7 +25,7 @@ export type ContentRelationshipField<
25
25
  : FilledContentRelationshipField<TypeEnum, LangEnum, DataInterface>;
26
26
 
27
27
  /**
28
- * Links that refer to Documents
28
+ * Links that refer to documents
29
29
  */
30
30
  export interface FilledContentRelationshipField<
31
31
  TypeEnum = string,
@@ -1,9 +1,10 @@
1
1
  import type { FieldState } from "./types";
2
2
 
3
3
  /**
4
- * A Date field.
4
+ * A date field.
5
5
  *
6
6
  * @typeParam State - State of the field which determines its shape.
7
+ *
7
8
  * @see More details: {@link https://prismic.io/docs/date}
8
9
  */
9
10
  export type DateField<State extends FieldState = FieldState> =
@@ -14,7 +14,7 @@ export interface AlternateLanguage<TypeEnum = string, LangEnum = string> {
14
14
  }
15
15
 
16
16
  /**
17
- * Metadata for Prismic Document
17
+ * Metadata for Prismic document
18
18
  */
19
19
  export interface PrismicDocumentHeader<TypeEnum = string, LangEnum = string> {
20
20
  /**
@@ -76,7 +76,7 @@ export interface PrismicDocumentHeader<TypeEnum = string, LangEnum = string> {
76
76
  /**
77
77
  * A Prismic document served through REST API v2.
78
78
  *
79
- * @see More details on Custom Types: {@link https://prismic.io/docs/custom-types}
79
+ * @see More details on custom types: {@link https://prismic.io/docs/custom-types}
80
80
  */
81
81
  export interface PrismicDocument<
82
82
  DataInterface extends Record<
@@ -97,7 +97,7 @@ export interface PrismicDocument<
97
97
  * A Prismic document served through REST API v2. Does not contain a UID (a
98
98
  * unique identifier).
99
99
  *
100
- * @see More details on Custom Types: {@link https://prismic.io/docs/custom-types}
100
+ * @see More details on custom types: {@link https://prismic.io/docs/custom-types}
101
101
  * @see More details on the UID field: {@link https://prismic.io/docs/uid}
102
102
  */
103
103
  export interface PrismicDocumentWithoutUID<
@@ -123,7 +123,7 @@ export interface PrismicDocumentWithoutUID<
123
123
  * A Prismic document served through REST API v2. Contains a UID (a unique
124
124
  * identifier).
125
125
  *
126
- * @see More details on Custom Types: {@link https://prismic.io/docs/custom-types}
126
+ * @see More details on custom types: {@link https://prismic.io/docs/custom-types}
127
127
  * @see More details on the UID field: {@link https://prismic.io/docs/uid}
128
128
  */
129
129
  export interface PrismicDocumentWithUID<
@@ -179,10 +179,11 @@ export type RichOEmbed = OEmbedBase<typeof OEmbedType.Rich> & {
179
179
  export type AnyOEmbed = PhotoOEmbed | VideoOEmbed | LinkOEmbed | RichOEmbed;
180
180
 
181
181
  /**
182
- * An Embed field.
182
+ * An embed field.
183
183
  *
184
184
  * @typeParam Data - Data provided by the URL's oEmbed provider.
185
185
  * @typeParam State - State of the field which determines its shape.
186
+ *
186
187
  * @see More details: {@link https://prismic.io/docs/embed}
187
188
  */
188
189
  export type EmbedField<
@@ -1,9 +1,10 @@
1
1
  import type { EmptyObjectField, FieldState } from "./types";
2
2
 
3
3
  /**
4
- * A Geopoint field.
4
+ * A geopoint field.
5
5
  *
6
6
  * @typeParam State - State of the field which determines its shape.
7
+ *
7
8
  * @see More details: {@link https://prismic.io/docs/geopoint}
8
9
  */
9
10
  export type GeoPointField<State extends FieldState = FieldState> =
@@ -1,7 +1,7 @@
1
1
  import type { AnyRegularField, FieldState } from "./types";
2
2
 
3
3
  /**
4
- * A Group field.
4
+ * A group field.
5
5
  *
6
6
  * More details: {@link https://prismic.io/docs/group}
7
7
  */
@@ -1,11 +1,12 @@
1
1
  import type { FieldState, Simplify } from "./types";
2
2
 
3
3
  /**
4
- * An individual image within an Image field. The base image and each thumbnail
4
+ * An individual image within an image field. The base image and each thumbnail
5
5
  * uses this type.
6
6
  *
7
7
  * @typeParam State - State of the field which determines its shape.
8
- * @see {@link ImageField} for a full Image field type.
8
+ *
9
+ * @see {@link ImageField} for a full image field type.
9
10
  */
10
11
  export type ImageFieldImage<State extends FieldState = FieldState> =
11
12
  State extends "empty" ? EmptyImageFieldImage : FilledImageFieldImage;
@@ -28,7 +29,7 @@ export interface EmptyImageFieldImage {
28
29
  }
29
30
 
30
31
  /**
31
- * Image Field
32
+ * An image field.
32
33
  *
33
34
  * **Note**: Passing `null` to the `ThumbnailNames` parameter is deprecated and
34
35
  * will be removed in a future version. Use `never` instead.
@@ -36,6 +37,7 @@ export interface EmptyImageFieldImage {
36
37
  * @typeParam ThumbnailNames - Names of thumbnails. If the field does not
37
38
  * contain thumbnails, `never` can be used to "disable" thumbnail fields.
38
39
  * @typeParam State - State of the field which determines its shape.
40
+ *
39
41
  * @see Image field documentation: {@link https://prismic.io/docs/image}
40
42
  */
41
43
  export type ImageField<
@@ -45,7 +47,7 @@ export type ImageField<
45
47
  ThumbnailNames extends string | null = never,
46
48
  State extends FieldState = FieldState,
47
49
  > =
48
- // Simplify is necessary. Without it, Group and Slice types break for
50
+ // Simplify is necessary. Without it, group and Slice types break for
49
51
  // unknown reasons. If you know why, please update this comment with an
50
52
  // explanation. :)
51
53
  Simplify<
@@ -1,13 +1,14 @@
1
1
  import type { FieldState } from "./types";
2
2
 
3
3
  /**
4
- * Integration Fields for Custom APIs
4
+ * An integration field.
5
5
  *
6
6
  * @typeParam Data - Data from the integrated API.
7
7
  * @typeParam State - State of the field which determines its shape.
8
+ *
8
9
  * @see More details: {@link https://prismic.io/docs/integration-fields}
9
10
  */
10
- export type IntegrationFields<
11
+ export type IntegrationField<
11
12
  Data extends Record<string, unknown> = Record<string, unknown>,
12
13
  State extends FieldState = FieldState,
13
14
  > = State extends "empty" ? null : Data;
@@ -1,9 +1,10 @@
1
1
  import type { FieldState } from "./types";
2
2
 
3
3
  /**
4
- * A Key text field
4
+ * A key text field
5
5
  *
6
6
  * @typeParam State - State of the field which determines its shape.
7
+ *
7
8
  * @see More details: {@link https://prismic.io/docs/key-text}
8
9
  */
9
10
  export type KeyTextField<State extends FieldState = FieldState> =
@@ -6,7 +6,7 @@ import type { LinkToMediaField } from "./linkToMedia";
6
6
  import type { SliceZone } from "./sliceZone";
7
7
 
8
8
  /**
9
- * Link Types
9
+ * Link types
10
10
  */
11
11
  export const LinkType = {
12
12
  Any: "Any",
@@ -36,7 +36,7 @@ export interface FilledLinkToWebField {
36
36
  }
37
37
 
38
38
  /**
39
- * Link Field
39
+ * A link field.
40
40
  *
41
41
  * @typeParam TypeEnum - Type API ID of the document.
42
42
  * @typeParam LangEnum - Language API ID of the document.
@@ -3,7 +3,7 @@ import type { FieldState } from "./types";
3
3
  import type { EmptyLinkField, LinkType } from "./link";
4
4
 
5
5
  /**
6
- * Link field that points to media
6
+ * A link field that points to media.
7
7
  *
8
8
  * @typeParam State - State of the field which determines its shape.
9
9
  */
@@ -13,7 +13,7 @@ export type LinkToMediaField<State extends FieldState = FieldState> =
13
13
  : FilledLinkToMediaField;
14
14
 
15
15
  /**
16
- * Link that points to media
16
+ * A link that points to media.
17
17
  */
18
18
  export interface FilledLinkToMediaField {
19
19
  link_type: typeof LinkType.Media;
@@ -1,9 +1,10 @@
1
1
  import type { FieldState } from "./types";
2
2
 
3
3
  /**
4
- * A Number field
4
+ * A number field.
5
5
  *
6
6
  * @typeParam State - State of the field which determines its shape.
7
+ *
7
8
  * @see More details: {@link https://prismic.io/docs/number}
8
9
  */
9
10
  export type NumberField<State extends FieldState = FieldState> =