@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.
- package/dist/buildQueryURL.cjs.map +1 -1
- package/dist/buildQueryURL.d.ts +15 -14
- package/dist/buildQueryURL.js.map +1 -1
- package/dist/createClient.cjs +63 -30
- package/dist/createClient.cjs.map +1 -1
- package/dist/createClient.d.ts +95 -48
- package/dist/createClient.js +63 -30
- package/dist/createClient.js.map +1 -1
- package/dist/filter.cjs +39 -39
- package/dist/filter.cjs.map +1 -1
- package/dist/filter.d.ts +39 -39
- package/dist/filter.js +39 -39
- package/dist/filter.js.map +1 -1
- package/dist/getGraphQLEndpoint.cjs.map +1 -1
- package/dist/getGraphQLEndpoint.d.ts +1 -0
- package/dist/getGraphQLEndpoint.js.map +1 -1
- package/dist/getRepositoryEndpoint.cjs.map +1 -1
- package/dist/getRepositoryEndpoint.d.ts +2 -0
- package/dist/getRepositoryEndpoint.js.map +1 -1
- package/dist/getRepositoryName.cjs.map +1 -1
- package/dist/getRepositoryName.d.ts +1 -0
- package/dist/getRepositoryName.js.map +1 -1
- package/dist/getToolbarSrc.cjs.map +1 -1
- package/dist/getToolbarSrc.d.ts +1 -1
- package/dist/getToolbarSrc.js.map +1 -1
- package/dist/helpers/asDate.cjs.map +1 -1
- package/dist/helpers/asDate.d.ts +3 -2
- package/dist/helpers/asDate.js.map +1 -1
- package/dist/helpers/asHTML.cjs.map +1 -1
- package/dist/helpers/asHTML.d.ts +34 -28
- package/dist/helpers/asHTML.js.map +1 -1
- package/dist/helpers/asImagePixelDensitySrcSet.cjs.map +1 -1
- package/dist/helpers/asImagePixelDensitySrcSet.d.ts +5 -5
- package/dist/helpers/asImagePixelDensitySrcSet.js.map +1 -1
- package/dist/helpers/asImageSrc.cjs.map +1 -1
- package/dist/helpers/asImageSrc.d.ts +3 -3
- package/dist/helpers/asImageSrc.js.map +1 -1
- package/dist/helpers/asImageWidthSrcSet.cjs.map +1 -1
- package/dist/helpers/asImageWidthSrcSet.d.ts +6 -6
- package/dist/helpers/asImageWidthSrcSet.js.map +1 -1
- package/dist/helpers/asLink.cjs.map +1 -1
- package/dist/helpers/asLink.d.ts +32 -23
- package/dist/helpers/asLink.js.map +1 -1
- package/dist/helpers/asLinkAttrs.cjs.map +1 -1
- package/dist/helpers/asLinkAttrs.d.ts +12 -7
- package/dist/helpers/asLinkAttrs.js.map +1 -1
- package/dist/helpers/asText.cjs.map +1 -1
- package/dist/helpers/asText.d.ts +18 -14
- package/dist/helpers/asText.js.map +1 -1
- package/dist/helpers/documentToLinkField.cjs.map +1 -1
- package/dist/helpers/documentToLinkField.d.ts +2 -0
- package/dist/helpers/documentToLinkField.js.map +1 -1
- package/dist/helpers/isFilled.cjs +3 -1
- package/dist/helpers/isFilled.cjs.map +1 -1
- package/dist/helpers/isFilled.d.ts +24 -20
- package/dist/helpers/isFilled.js +3 -1
- package/dist/helpers/isFilled.js.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +13 -3
- package/dist/index.js.map +1 -1
- package/dist/lib/appendFilters.cjs.map +1 -1
- package/dist/lib/appendFilters.d.ts +4 -4
- package/dist/lib/appendFilters.js.map +1 -1
- package/dist/lib/castArray.cjs.map +1 -1
- package/dist/lib/castArray.d.ts +1 -0
- package/dist/lib/castArray.js.map +1 -1
- package/dist/lib/castThunk.cjs.map +1 -1
- package/dist/lib/castThunk.d.ts +2 -1
- package/dist/lib/castThunk.js.map +1 -1
- package/dist/lib/everyTagFilter.cjs.map +1 -1
- package/dist/lib/everyTagFilter.d.ts +2 -2
- package/dist/lib/everyTagFilter.js.map +1 -1
- package/dist/lib/findMasterRef.cjs.map +1 -1
- package/dist/lib/findMasterRef.d.ts +1 -0
- package/dist/lib/findMasterRef.js.map +1 -1
- package/dist/lib/findRef.cjs.map +1 -1
- package/dist/lib/findRef.d.ts +3 -2
- package/dist/lib/findRef.js.map +1 -1
- package/dist/lib/findRefByID.cjs.map +1 -1
- package/dist/lib/findRefByID.d.ts +1 -0
- package/dist/lib/findRefByID.js.map +1 -1
- package/dist/lib/findRefByLabel.cjs.map +1 -1
- package/dist/lib/findRefByLabel.d.ts +1 -0
- package/dist/lib/findRefByLabel.js.map +1 -1
- package/dist/package.json.cjs +1 -1
- package/dist/package.json.js +1 -1
- package/dist/types/api/query.d.ts +1 -0
- package/dist/types/api/release.d.ts +1 -0
- package/dist/types/api/repository.d.ts +2 -2
- package/dist/types/api/tags.d.ts +1 -0
- package/dist/types/model/boolean.d.ts +1 -1
- package/dist/types/model/color.d.ts +1 -1
- package/dist/types/model/contentRelationship.d.ts +2 -3
- package/dist/types/model/customType.d.ts +11 -11
- package/dist/types/model/date.d.ts +1 -1
- package/dist/types/model/embed.d.ts +1 -1
- package/dist/types/model/geoPoint.d.ts +1 -1
- package/dist/types/model/group.d.ts +1 -1
- package/dist/types/model/image.d.ts +3 -3
- package/dist/types/model/{integrationFields.d.ts → integration.d.ts} +3 -3
- package/dist/types/model/keyText.d.ts +1 -1
- package/dist/types/model/link.cjs.map +1 -1
- package/dist/types/model/link.d.ts +4 -6
- package/dist/types/model/link.js.map +1 -1
- package/dist/types/model/linkToMedia.d.ts +2 -3
- package/dist/types/model/number.d.ts +1 -1
- package/dist/types/model/richText.d.ts +3 -3
- package/dist/types/model/select.d.ts +1 -1
- package/dist/types/model/sharedSlice.d.ts +2 -2
- package/dist/types/model/sharedSliceVariation.d.ts +1 -1
- package/dist/types/model/slice.cjs.map +1 -1
- package/dist/types/model/slice.d.ts +1 -1
- package/dist/types/model/slice.js.map +1 -1
- package/dist/types/model/sliceZone.cjs.map +1 -1
- package/dist/types/model/sliceZone.d.ts +2 -2
- package/dist/types/model/sliceZone.js.map +1 -1
- package/dist/types/model/timestamp.d.ts +1 -1
- package/dist/types/model/title.d.ts +1 -1
- package/dist/types/model/types.cjs +5 -1
- package/dist/types/model/types.cjs.map +1 -1
- package/dist/types/model/types.d.ts +10 -6
- package/dist/types/model/types.js +5 -1
- package/dist/types/model/types.js.map +1 -1
- package/dist/types/model/uid.d.ts +1 -1
- package/dist/types/value/boolean.d.ts +1 -1
- package/dist/types/value/color.d.ts +2 -1
- package/dist/types/value/contentRelationship.d.ts +1 -1
- package/dist/types/value/date.d.ts +2 -1
- package/dist/types/value/document.d.ts +4 -4
- package/dist/types/value/embed.cjs.map +1 -1
- package/dist/types/value/embed.d.ts +2 -1
- package/dist/types/value/embed.js.map +1 -1
- package/dist/types/value/geoPoint.d.ts +2 -1
- package/dist/types/value/group.d.ts +1 -1
- package/dist/types/value/image.d.ts +5 -3
- package/dist/types/value/{integrationFields.d.ts → integration.d.ts} +3 -2
- package/dist/types/value/keyText.d.ts +2 -1
- package/dist/types/value/link.cjs.map +1 -1
- package/dist/types/value/link.d.ts +2 -2
- package/dist/types/value/link.js.map +1 -1
- package/dist/types/value/linkToMedia.d.ts +2 -2
- package/dist/types/value/number.d.ts +2 -1
- package/dist/types/value/richText.cjs.map +1 -1
- package/dist/types/value/richText.d.ts +26 -26
- package/dist/types/value/richText.js.map +1 -1
- package/dist/types/value/select.d.ts +2 -1
- package/dist/types/value/sharedSlice.d.ts +1 -1
- package/dist/types/value/sharedSliceVariation.d.ts +3 -0
- package/dist/types/value/slice.d.ts +1 -1
- package/dist/types/value/timestamp.d.ts +1 -1
- package/dist/types/value/title.d.ts +1 -1
- package/dist/types/value/types.d.ts +3 -2
- package/dist/types/webhook/apiUpdate.d.ts +1 -1
- package/package.json +4 -4
- package/src/buildQueryURL.ts +15 -14
- package/src/createClient.ts +112 -55
- package/src/filter.ts +43 -43
- package/src/getGraphQLEndpoint.ts +1 -0
- package/src/getRepositoryEndpoint.ts +2 -0
- package/src/getRepositoryName.ts +1 -0
- package/src/getToolbarSrc.ts +1 -1
- package/src/helpers/asDate.ts +3 -2
- package/src/helpers/asHTML.ts +36 -30
- package/src/helpers/asImagePixelDensitySrcSet.ts +5 -5
- package/src/helpers/asImageSrc.ts +3 -3
- package/src/helpers/asImageWidthSrcSet.ts +6 -6
- package/src/helpers/asLink.ts +36 -27
- package/src/helpers/asLinkAttrs.ts +12 -7
- package/src/helpers/asText.ts +18 -14
- package/src/helpers/documentToLinkField.ts +3 -1
- package/src/helpers/isFilled.ts +27 -22
- package/src/index.ts +20 -3
- package/src/lib/appendFilters.ts +4 -4
- package/src/lib/castArray.ts +1 -0
- package/src/lib/castThunk.ts +9 -2
- package/src/lib/everyTagFilter.ts +2 -2
- package/src/lib/findMasterRef.ts +1 -0
- package/src/lib/findRef.ts +3 -2
- package/src/lib/findRefByID.ts +1 -0
- package/src/lib/findRefByLabel.ts +1 -0
- package/src/types/api/query.ts +1 -0
- package/src/types/api/release.ts +1 -0
- package/src/types/api/repository.ts +2 -2
- package/src/types/api/tags.ts +1 -0
- package/src/types/model/boolean.ts +1 -1
- package/src/types/model/color.ts +1 -1
- package/src/types/model/contentRelationship.ts +2 -3
- package/src/types/model/customType.ts +11 -11
- package/src/types/model/date.ts +1 -1
- package/src/types/model/embed.ts +1 -1
- package/src/types/model/geoPoint.ts +1 -1
- package/src/types/model/group.ts +1 -1
- package/src/types/model/image.ts +3 -3
- package/src/types/model/{integrationFields.ts → integration.ts} +3 -3
- package/src/types/model/keyText.ts +1 -1
- package/src/types/model/link.ts +4 -6
- package/src/types/model/linkToMedia.ts +2 -3
- package/src/types/model/number.ts +1 -1
- package/src/types/model/richText.ts +3 -3
- package/src/types/model/select.ts +1 -1
- package/src/types/model/sharedSlice.ts +2 -2
- package/src/types/model/sharedSliceVariation.ts +1 -1
- package/src/types/model/slice.ts +1 -1
- package/src/types/model/sliceZone.ts +2 -2
- package/src/types/model/timestamp.ts +1 -1
- package/src/types/model/title.ts +1 -1
- package/src/types/model/types.ts +10 -6
- package/src/types/model/uid.ts +1 -1
- package/src/types/value/boolean.ts +1 -1
- package/src/types/value/color.ts +2 -1
- package/src/types/value/contentRelationship.ts +1 -1
- package/src/types/value/date.ts +2 -1
- package/src/types/value/document.ts +4 -4
- package/src/types/value/embed.ts +2 -1
- package/src/types/value/geoPoint.ts +2 -1
- package/src/types/value/group.ts +1 -1
- package/src/types/value/image.ts +6 -4
- package/src/types/value/{integrationFields.ts → integration.ts} +3 -2
- package/src/types/value/keyText.ts +2 -1
- package/src/types/value/link.ts +2 -2
- package/src/types/value/linkToMedia.ts +2 -2
- package/src/types/value/number.ts +2 -1
- package/src/types/value/richText.ts +26 -26
- package/src/types/value/select.ts +2 -1
- package/src/types/value/sharedSlice.ts +1 -1
- package/src/types/value/sharedSliceVariation.ts +3 -0
- package/src/types/value/slice.ts +1 -1
- package/src/types/value/timestamp.ts +1 -1
- package/src/types/value/title.ts +1 -1
- package/src/types/value/types.ts +3 -2
- package/src/types/webhook/apiUpdate.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findRefByLabel.js","sources":["../../../src/lib/findRefByLabel.ts"],"sourcesContent":["import { Ref } from \"../types/api/ref\";\n\nimport { findRef } from \"./findRef\";\n\n/**\n * Returns the ref from a list of given refs with a matching label.\n *\n * @param refs - A list of refs to search.\n * @param id - The label of the ref to find.\n *\n * @returns The ref with a matching label from the list.\n * @throws If a matching ref cannot be found.\n */\nexport const findRefByLabel = (refs: Ref[], label: string): Ref => {\n\treturn findRef(refs, (ref) => ref.label === label);\n};\n"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"findRefByLabel.js","sources":["../../../src/lib/findRefByLabel.ts"],"sourcesContent":["import { Ref } from \"../types/api/ref\";\n\nimport { findRef } from \"./findRef\";\n\n/**\n * Returns the ref from a list of given refs with a matching label.\n *\n * @param refs - A list of refs to search.\n * @param id - The label of the ref to find.\n *\n * @returns The ref with a matching label from the list.\n *\n * @throws If a matching ref cannot be found.\n */\nexport const findRefByLabel = (refs: Ref[], label: string): Ref => {\n\treturn findRef(refs, (ref) => ref.label === label);\n};\n"],"names":[],"mappings":";AAca,MAAA,iBAAiB,CAAC,MAAa,UAAsB;AACjE,SAAO,QAAQ,MAAM,CAAC,QAAQ,IAAI,UAAU,KAAK;AAClD;"}
|
package/dist/package.json.cjs
CHANGED
package/dist/package.json.js
CHANGED
|
@@ -4,6 +4,7 @@ import { PrismicDocument } from "../value/document";
|
|
|
4
4
|
* paginated metadata and a list of matching results for the query.
|
|
5
5
|
*
|
|
6
6
|
* @typeParam Document - The type(s) of Prismic document that can be returned.
|
|
7
|
+
*
|
|
7
8
|
* @see More details on querying: {@link https://prismic.io/docs/api}
|
|
8
9
|
*/
|
|
9
10
|
export interface Query<Document extends PrismicDocument = PrismicDocument> {
|
|
@@ -13,7 +13,7 @@ export interface Repository {
|
|
|
13
13
|
*/
|
|
14
14
|
refs: Ref[];
|
|
15
15
|
/**
|
|
16
|
-
* An identifier used to query content with the latest
|
|
16
|
+
* An identifier used to query content with the latest integration fields
|
|
17
17
|
* data.
|
|
18
18
|
*/
|
|
19
19
|
integrationFieldsRef: string | null;
|
|
@@ -24,7 +24,7 @@ export interface Repository {
|
|
|
24
24
|
*/
|
|
25
25
|
languages: Language[];
|
|
26
26
|
/**
|
|
27
|
-
* A list of the repository's
|
|
27
|
+
* A list of the repository's custom type API IDs mapped to their
|
|
28
28
|
* human-readable name.
|
|
29
29
|
*/
|
|
30
30
|
types: Record<string, string>;
|
package/dist/types/api/tags.d.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* sending a `GET` request to a repository's `/api/tags` endpoint.
|
|
4
4
|
*
|
|
5
5
|
* @typeParam Tag - Tags that are returned by the Tags API.
|
|
6
|
+
*
|
|
6
7
|
* @see More details on the Tags API: {@link https://prismic.io/docs/tags-api-technical-reference}
|
|
7
8
|
*/
|
|
8
9
|
export type Tags<Tag extends string = string> = Tag[];
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import type { CustomTypeModelFieldType } from "./types";
|
|
2
2
|
import type { CustomTypeModelLinkSelectType } from "./link";
|
|
3
3
|
/**
|
|
4
|
-
* A
|
|
4
|
+
* A content relationship custom type field.
|
|
5
5
|
*
|
|
6
|
-
* More details:
|
|
7
|
-
* {@link https://prismic.io/docs/content-relationship}
|
|
6
|
+
* More details: {@link https://prismic.io/docs/content-relationship}
|
|
8
7
|
*/
|
|
9
8
|
export interface CustomTypeModelContentRelationshipField<CustomTypeIDs extends string = string, Tags extends string = string> {
|
|
10
9
|
type: typeof CustomTypeModelFieldType.Link;
|
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import { CustomTypeModelField } from "./types";
|
|
2
2
|
/**
|
|
3
|
-
* A Prismic
|
|
3
|
+
* A Prismic custom type model.
|
|
4
4
|
*
|
|
5
|
-
* @typeParam ID - API ID of the
|
|
6
|
-
* @typeParam Definition - The
|
|
5
|
+
* @typeParam ID - API ID of the custom type.
|
|
6
|
+
* @typeParam Definition - The custom type's tabs and their fields.
|
|
7
7
|
*/
|
|
8
8
|
export interface CustomTypeModel<ID extends string = string, Definition extends CustomTypeModelDefinition = CustomTypeModelDefinition> {
|
|
9
9
|
/**
|
|
10
|
-
* The ID of the
|
|
10
|
+
* The ID of the custom type model.
|
|
11
11
|
*/
|
|
12
12
|
id: ID;
|
|
13
13
|
/**
|
|
14
|
-
* The human readable name of the
|
|
14
|
+
* The human readable name of the custom type model.
|
|
15
15
|
*/
|
|
16
16
|
label: string | null | undefined;
|
|
17
17
|
/**
|
|
18
|
-
* Determines if more than one document for the
|
|
18
|
+
* Determines if more than one document for the custom type can be created.
|
|
19
19
|
*/
|
|
20
20
|
repeatable: boolean;
|
|
21
21
|
/**
|
|
22
|
-
* The
|
|
22
|
+
* The custom type model definition.
|
|
23
23
|
*/
|
|
24
24
|
json: Definition;
|
|
25
25
|
/**
|
|
26
|
-
* Determines if new documents for the
|
|
26
|
+
* Determines if new documents for the custom type can be created.
|
|
27
27
|
*/
|
|
28
28
|
status: boolean;
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
* A Prismic
|
|
31
|
+
* A Prismic custom type's tabs and their fields.
|
|
32
32
|
*
|
|
33
|
-
* @typeParam TabName - Names of
|
|
33
|
+
* @typeParam TabName - Names of custom type tabs.
|
|
34
34
|
*/
|
|
35
35
|
export type CustomTypeModelDefinition<TabName extends string = string> = Record<TabName, CustomTypeModelTab>;
|
|
36
36
|
/**
|
|
37
|
-
* A
|
|
37
|
+
* A custom type's tab. Each tab can contain any number of fields but is limited
|
|
38
38
|
* to one Slice Zone.
|
|
39
39
|
*
|
|
40
40
|
* @typeParam FieldName - API IDs of the fields.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CustomTypeModelFieldType } from "./types";
|
|
2
2
|
/**
|
|
3
|
-
* Dimension constraints for an
|
|
3
|
+
* Dimension constraints for an image custom type field.
|
|
4
4
|
*
|
|
5
5
|
* More details: {@link https://prismic.io/docs/image}
|
|
6
6
|
*/
|
|
@@ -9,7 +9,7 @@ export interface CustomTypeModelImageConstraint {
|
|
|
9
9
|
height?: number | null;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
|
-
* A thumbnail for an
|
|
12
|
+
* A thumbnail for an image custom type field.
|
|
13
13
|
*
|
|
14
14
|
* More details: {@link https://prismic.io/docs/image}
|
|
15
15
|
*/
|
|
@@ -17,7 +17,7 @@ export interface CustomTypeModelImageThumbnail<Name extends string = string> ext
|
|
|
17
17
|
name: Name;
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
20
|
-
* An
|
|
20
|
+
* An image custom type field.
|
|
21
21
|
*
|
|
22
22
|
* More details: {@link https://prismic.io/docs/image}
|
|
23
23
|
*/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { CustomTypeModelFieldType } from "./types";
|
|
2
2
|
/**
|
|
3
|
-
* An
|
|
3
|
+
* An integration custom type field.
|
|
4
4
|
*
|
|
5
5
|
* More details: {@link https://prismic.io/docs/integration-fields}
|
|
6
6
|
*/
|
|
7
|
-
export interface
|
|
8
|
-
type: typeof CustomTypeModelFieldType.
|
|
7
|
+
export interface CustomTypeModelIntegrationField {
|
|
8
|
+
type: typeof CustomTypeModelFieldType.Integration;
|
|
9
9
|
config?: {
|
|
10
10
|
label?: string | null;
|
|
11
11
|
placeholder?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.cjs","sources":["../../../../src/types/model/link.ts"],"sourcesContent":["import type { CustomTypeModelFieldType } from \"./types\";\n\n/**\n * A
|
|
1
|
+
{"version":3,"file":"link.cjs","sources":["../../../../src/types/model/link.ts"],"sourcesContent":["import type { CustomTypeModelFieldType } from \"./types\";\n\n/**\n * A link custom type field.\n *\n * More details: {@link https://prismic.io/docs/link}\n */\nexport interface CustomTypeModelLinkField {\n\ttype: typeof CustomTypeModelFieldType.Link;\n\tconfig?: {\n\t\tlabel?: string | null;\n\t\tplaceholder?: string;\n\t\tselect?:\n\t\t\t| null\n\t\t\t| (typeof CustomTypeModelLinkSelectType)[keyof typeof CustomTypeModelLinkSelectType];\n\t\tallowTargetBlank?: boolean;\n\t};\n}\n\n/**\n * Type of a link custom type field.\n *\n * More details: {@link https://prismic.io/docs/link}\n */\nexport const CustomTypeModelLinkSelectType = {\n\tDocument: \"document\",\n\tMedia: \"media\",\n\tWeb: \"web\",\n} as const;\n"],"names":[],"mappings":";;AAwBO,MAAM,gCAAgC;AAAA,EAC5C,UAAU;AAAA,EACV,OAAO;AAAA,EACP,KAAK;;;"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import type { CustomTypeModelFieldType } from "./types";
|
|
2
2
|
/**
|
|
3
|
-
* A
|
|
3
|
+
* A link custom type field.
|
|
4
4
|
*
|
|
5
|
-
* More details:
|
|
6
|
-
* {@link https://prismic.io/docs/link}
|
|
5
|
+
* More details: {@link https://prismic.io/docs/link}
|
|
7
6
|
*/
|
|
8
7
|
export interface CustomTypeModelLinkField {
|
|
9
8
|
type: typeof CustomTypeModelFieldType.Link;
|
|
@@ -15,10 +14,9 @@ export interface CustomTypeModelLinkField {
|
|
|
15
14
|
};
|
|
16
15
|
}
|
|
17
16
|
/**
|
|
18
|
-
* Type of a
|
|
17
|
+
* Type of a link custom type field.
|
|
19
18
|
*
|
|
20
|
-
* More details:
|
|
21
|
-
* {@link https://prismic.io/docs/link}
|
|
19
|
+
* More details: {@link https://prismic.io/docs/link}
|
|
22
20
|
*/
|
|
23
21
|
export declare const CustomTypeModelLinkSelectType: {
|
|
24
22
|
readonly Document: "document";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.js","sources":["../../../../src/types/model/link.ts"],"sourcesContent":["import type { CustomTypeModelFieldType } from \"./types\";\n\n/**\n * A
|
|
1
|
+
{"version":3,"file":"link.js","sources":["../../../../src/types/model/link.ts"],"sourcesContent":["import type { CustomTypeModelFieldType } from \"./types\";\n\n/**\n * A link custom type field.\n *\n * More details: {@link https://prismic.io/docs/link}\n */\nexport interface CustomTypeModelLinkField {\n\ttype: typeof CustomTypeModelFieldType.Link;\n\tconfig?: {\n\t\tlabel?: string | null;\n\t\tplaceholder?: string;\n\t\tselect?:\n\t\t\t| null\n\t\t\t| (typeof CustomTypeModelLinkSelectType)[keyof typeof CustomTypeModelLinkSelectType];\n\t\tallowTargetBlank?: boolean;\n\t};\n}\n\n/**\n * Type of a link custom type field.\n *\n * More details: {@link https://prismic.io/docs/link}\n */\nexport const CustomTypeModelLinkSelectType = {\n\tDocument: \"document\",\n\tMedia: \"media\",\n\tWeb: \"web\",\n} as const;\n"],"names":[],"mappings":"AAwBO,MAAM,gCAAgC;AAAA,EAC5C,UAAU;AAAA,EACV,OAAO;AAAA,EACP,KAAK;;"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import type { CustomTypeModelFieldType } from "./types";
|
|
2
2
|
import type { CustomTypeModelLinkSelectType } from "./link";
|
|
3
3
|
/**
|
|
4
|
-
* A
|
|
4
|
+
* A link to media custom type field.
|
|
5
5
|
*
|
|
6
|
-
* More details:
|
|
7
|
-
* {@link https://prismic.io/docs/media}
|
|
6
|
+
* More details: {@link https://prismic.io/docs/media}
|
|
8
7
|
*/
|
|
9
8
|
export interface CustomTypeModelLinkToMediaField {
|
|
10
9
|
type: typeof CustomTypeModelFieldType.Link;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { CustomTypeModelFieldType } from "./types";
|
|
2
2
|
/**
|
|
3
|
-
* A
|
|
3
|
+
* A rich text custom type field.
|
|
4
4
|
*
|
|
5
5
|
* More details: {@link https://prismic.io/docs/rich-text-title}
|
|
6
6
|
*/
|
|
7
7
|
export type CustomTypeModelRichTextField = CustomTypeModelRichTextMultiField | CustomTypeModelRichTextSingleField;
|
|
8
8
|
/**
|
|
9
|
-
* A
|
|
9
|
+
* A rich text custom type field which supports multiple blocks of content.
|
|
10
10
|
*
|
|
11
11
|
* More details: {@link https://prismic.io/docs/rich-text-title}
|
|
12
12
|
*/
|
|
@@ -20,7 +20,7 @@ export interface CustomTypeModelRichTextMultiField {
|
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* A
|
|
23
|
+
* A rich text custom type field which supports one block of content.
|
|
24
24
|
*
|
|
25
25
|
* More details: {@link https://prismic.io/docs/rich-text-title}
|
|
26
26
|
*/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { SharedSliceModelVariation } from "./sharedSliceVariation";
|
|
2
2
|
import type { CustomTypeModelSliceType } from "./sliceZone";
|
|
3
3
|
/**
|
|
4
|
-
* A Prismic
|
|
4
|
+
* A Prismic shared Slice model.
|
|
5
5
|
*
|
|
6
6
|
* More details: {@link https://prismic.io/docs/slice}
|
|
7
7
|
*
|
|
8
|
-
* @typeParam Variation - A variation for the
|
|
8
|
+
* @typeParam Variation - A variation for the shared Slice.
|
|
9
9
|
*/
|
|
10
10
|
export interface SharedSliceModel<ID extends string = string, Variation extends SharedSliceModelVariation = SharedSliceModelVariation> {
|
|
11
11
|
type: typeof CustomTypeModelSliceType.SharedSlice;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slice.cjs","sources":["../../../../src/types/model/slice.ts"],"sourcesContent":["import type { CustomTypeModelFieldForGroup } from \"./types\";\n\nimport type { CustomTypeModelGroupField } from \"./group\";\nimport type { CustomTypeModelSliceType } from \"./sliceZone\";\n\n/**\n * A Slice for a
|
|
1
|
+
{"version":3,"file":"slice.cjs","sources":["../../../../src/types/model/slice.ts"],"sourcesContent":["import type { CustomTypeModelFieldForGroup } from \"./types\";\n\nimport type { CustomTypeModelGroupField } 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<string, CustomTypeModelFieldForGroup> = Record<\n\t\tstring,\n\t\tCustomTypeModelFieldForGroup\n\t>,\n\tRepeatFields extends Record<string, CustomTypeModelFieldForGroup> = Record<\n\t\tstring,\n\t\tCustomTypeModelFieldForGroup\n\t>,\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| CustomTypeModelGroupField\n\t| CustomTypeModelFieldForGroup;\n"],"names":[],"mappings":";;AAuCO,MAAM,8BAA8B;AAAA,EAC1C,MAAM;AAAA,EACN,MAAM;;;"}
|
|
@@ -2,7 +2,7 @@ import type { CustomTypeModelFieldForGroup } from "./types";
|
|
|
2
2
|
import type { CustomTypeModelGroupField } from "./group";
|
|
3
3
|
import type { CustomTypeModelSliceType } from "./sliceZone";
|
|
4
4
|
/**
|
|
5
|
-
* A Slice for a
|
|
5
|
+
* A Slice for a custom type.
|
|
6
6
|
*
|
|
7
7
|
* More details: {@link https://prismic.io/docs/slice}
|
|
8
8
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slice.js","sources":["../../../../src/types/model/slice.ts"],"sourcesContent":["import type { CustomTypeModelFieldForGroup } from \"./types\";\n\nimport type { CustomTypeModelGroupField } from \"./group\";\nimport type { CustomTypeModelSliceType } from \"./sliceZone\";\n\n/**\n * A Slice for a
|
|
1
|
+
{"version":3,"file":"slice.js","sources":["../../../../src/types/model/slice.ts"],"sourcesContent":["import type { CustomTypeModelFieldForGroup } from \"./types\";\n\nimport type { CustomTypeModelGroupField } 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<string, CustomTypeModelFieldForGroup> = Record<\n\t\tstring,\n\t\tCustomTypeModelFieldForGroup\n\t>,\n\tRepeatFields extends Record<string, CustomTypeModelFieldForGroup> = Record<\n\t\tstring,\n\t\tCustomTypeModelFieldForGroup\n\t>,\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| CustomTypeModelGroupField\n\t| CustomTypeModelFieldForGroup;\n"],"names":[],"mappings":"AAuCO,MAAM,8BAA8B;AAAA,EAC1C,MAAM;AAAA,EACN,MAAM;;"}
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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,7 +1,7 @@
|
|
|
1
1
|
import type { CustomTypeModelFieldType } from "./types";
|
|
2
2
|
import type { CustomTypeModelLegacySlice, CustomTypeModelSlice } from "./slice";
|
|
3
3
|
/**
|
|
4
|
-
* A Slice Zone
|
|
4
|
+
* A Slice Zone custom type field.
|
|
5
5
|
*
|
|
6
6
|
* More details: {@link https://prismic.io/docs/slice}
|
|
7
7
|
*/
|
|
@@ -32,7 +32,7 @@ export declare const CustomTypeModelSliceType: {
|
|
|
32
32
|
readonly SharedSlice: "SharedSlice";
|
|
33
33
|
};
|
|
34
34
|
/**
|
|
35
|
-
* A
|
|
35
|
+
* A shared Slice for a custom type.
|
|
36
36
|
*
|
|
37
37
|
* More details: {@link https://prismic.io/docs/slice}
|
|
38
38
|
*/
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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;;"}
|
|
@@ -8,7 +8,7 @@ const CustomTypeModelFieldType = {
|
|
|
8
8
|
GeoPoint: "GeoPoint",
|
|
9
9
|
Group: "Group",
|
|
10
10
|
Image: "Image",
|
|
11
|
-
|
|
11
|
+
Integration: "IntegrationFields",
|
|
12
12
|
Link: "Link",
|
|
13
13
|
Number: "Number",
|
|
14
14
|
Select: "Select",
|
|
@@ -17,6 +17,10 @@ const CustomTypeModelFieldType = {
|
|
|
17
17
|
Text: "Text",
|
|
18
18
|
Timestamp: "Timestamp",
|
|
19
19
|
UID: "UID",
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated - Renamed to `Integration`.
|
|
22
|
+
*/
|
|
23
|
+
IntegrationFields: "IntegrationFields",
|
|
20
24
|
/**
|
|
21
25
|
* @deprecated - Legacy field type. Use `Number` instead.
|
|
22
26
|
*/
|
|
@@ -1 +1 @@
|
|
|
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 { CustomTypeModelGroupField } from \"./group\";\nimport type { CustomTypeModelImageField } from \"./image\";\nimport type {
|
|
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 { CustomTypeModelGroupField } 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 { 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\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\n/**\n * A custom type field.\n */\nexport type CustomTypeModelField =\n\t| CustomTypeModelUIDField\n\t| CustomTypeModelGroupField\n\t| CustomTypeModelSliceZoneField\n\t| CustomTypeModelFieldForGroup;\n\n/**\n * Any custom type field that is valid for a group field.\n */\nexport type CustomTypeModelFieldForGroup =\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| CustomTypeModelTitleField\n\t| CustomTypeModelKeyTextField\n\t| CustomTypeModelTimestampField\n\t| CustomTypeModelSeparatorField;\n"],"names":[],"mappings":";;AAyBO,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,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;;;"}
|
|
@@ -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 {
|
|
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";
|
|
@@ -20,7 +20,7 @@ import type { CustomTypeModelTimestampField } from "./timestamp";
|
|
|
20
20
|
import type { CustomTypeModelTitleField } from "./title";
|
|
21
21
|
import type { CustomTypeModelUIDField } from "./uid";
|
|
22
22
|
/**
|
|
23
|
-
* Type identifier for a
|
|
23
|
+
* Type identifier for a custom type field.
|
|
24
24
|
*/
|
|
25
25
|
export declare const CustomTypeModelFieldType: {
|
|
26
26
|
readonly Boolean: "Boolean";
|
|
@@ -30,7 +30,7 @@ export declare const CustomTypeModelFieldType: {
|
|
|
30
30
|
readonly GeoPoint: "GeoPoint";
|
|
31
31
|
readonly Group: "Group";
|
|
32
32
|
readonly Image: "Image";
|
|
33
|
-
readonly
|
|
33
|
+
readonly Integration: "IntegrationFields";
|
|
34
34
|
readonly Link: "Link";
|
|
35
35
|
readonly Number: "Number";
|
|
36
36
|
readonly Select: "Select";
|
|
@@ -39,6 +39,10 @@ export declare const CustomTypeModelFieldType: {
|
|
|
39
39
|
readonly Text: "Text";
|
|
40
40
|
readonly Timestamp: "Timestamp";
|
|
41
41
|
readonly UID: "UID";
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated - Renamed to `Integration`.
|
|
44
|
+
*/
|
|
45
|
+
readonly IntegrationFields: "IntegrationFields";
|
|
42
46
|
/**
|
|
43
47
|
* @deprecated - Legacy field type. Use `Number` instead.
|
|
44
48
|
*/
|
|
@@ -53,10 +57,10 @@ export declare const CustomTypeModelFieldType: {
|
|
|
53
57
|
readonly LegacySlices: "Choice";
|
|
54
58
|
};
|
|
55
59
|
/**
|
|
56
|
-
* A
|
|
60
|
+
* A custom type field.
|
|
57
61
|
*/
|
|
58
62
|
export type CustomTypeModelField = CustomTypeModelUIDField | CustomTypeModelGroupField | CustomTypeModelSliceZoneField | CustomTypeModelFieldForGroup;
|
|
59
63
|
/**
|
|
60
|
-
* Any
|
|
64
|
+
* Any custom type field that is valid for a group field.
|
|
61
65
|
*/
|
|
62
|
-
export type CustomTypeModelFieldForGroup = CustomTypeModelBooleanField | CustomTypeModelColorField | CustomTypeModelDateField | CustomTypeModelEmbedField | CustomTypeModelGeoPointField | CustomTypeModelImageField |
|
|
66
|
+
export type CustomTypeModelFieldForGroup = CustomTypeModelBooleanField | CustomTypeModelColorField | CustomTypeModelDateField | CustomTypeModelEmbedField | CustomTypeModelGeoPointField | CustomTypeModelImageField | CustomTypeModelIntegrationField | CustomTypeModelContentRelationshipField | CustomTypeModelLinkField | CustomTypeModelLinkToMediaField | CustomTypeModelNumberField | CustomTypeModelRangeField | CustomTypeModelSelectField | CustomTypeModelRichTextField | CustomTypeModelTitleField | CustomTypeModelKeyTextField | CustomTypeModelTimestampField | CustomTypeModelSeparatorField;
|
|
@@ -6,7 +6,7 @@ const CustomTypeModelFieldType = {
|
|
|
6
6
|
GeoPoint: "GeoPoint",
|
|
7
7
|
Group: "Group",
|
|
8
8
|
Image: "Image",
|
|
9
|
-
|
|
9
|
+
Integration: "IntegrationFields",
|
|
10
10
|
Link: "Link",
|
|
11
11
|
Number: "Number",
|
|
12
12
|
Select: "Select",
|
|
@@ -15,6 +15,10 @@ const CustomTypeModelFieldType = {
|
|
|
15
15
|
Text: "Text",
|
|
16
16
|
Timestamp: "Timestamp",
|
|
17
17
|
UID: "UID",
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated - Renamed to `Integration`.
|
|
20
|
+
*/
|
|
21
|
+
IntegrationFields: "IntegrationFields",
|
|
18
22
|
/**
|
|
19
23
|
* @deprecated - Legacy field type. Use `Number` instead.
|
|
20
24
|
*/
|
|
@@ -1 +1 @@
|
|
|
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 { CustomTypeModelGroupField } from \"./group\";\nimport type { CustomTypeModelImageField } from \"./image\";\nimport type {
|
|
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 { CustomTypeModelGroupField } 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 { 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\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\n/**\n * A custom type field.\n */\nexport type CustomTypeModelField =\n\t| CustomTypeModelUIDField\n\t| CustomTypeModelGroupField\n\t| CustomTypeModelSliceZoneField\n\t| CustomTypeModelFieldForGroup;\n\n/**\n * Any custom type field that is valid for a group field.\n */\nexport type CustomTypeModelFieldForGroup =\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| CustomTypeModelTitleField\n\t| CustomTypeModelKeyTextField\n\t| CustomTypeModelTimestampField\n\t| CustomTypeModelSeparatorField;\n"],"names":[],"mappings":"AAyBO,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,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;;"}
|