UNPKG

@prismicio/client

Version:

The official JavaScript + TypeScript client library for Prismic

77 lines (76 loc) 3.75 kB
import type { CustomTypeModelBooleanField } from "./boolean"; import type { CustomTypeModelColorField } from "./color"; import type { CustomTypeModelContentRelationshipField } from "./contentRelationship"; import type { CustomTypeModelDateField } from "./date"; import type { CustomTypeModelEmbedField } from "./embed"; import type { CustomTypeModelGeoPointField } from "./geoPoint"; import type { CustomTypeModelGroupField, CustomTypeModelNestedGroupField } from "./group"; import type { CustomTypeModelImageField } from "./image"; import type { CustomTypeModelIntegrationField } from "./integration"; import type { CustomTypeModelKeyTextField } from "./keyText"; import type { CustomTypeModelLinkField } from "./link"; import type { CustomTypeModelLinkToMediaField } from "./linkToMedia"; import type { CustomTypeModelNumberField } from "./number"; import type { CustomTypeModelRangeField } from "./range"; import type { CustomTypeModelRichTextField } from "./richText"; import type { CustomTypeModelSelectField } from "./select"; import type { CustomTypeModelSeparatorField } from "./separator"; import type { CustomTypeModelSliceZoneField } from "./sliceZone"; import type { CustomTypeModelTableField } from "./table"; import type { CustomTypeModelTimestampField } from "./timestamp"; import type { CustomTypeModelTitleField } from "./title"; import type { CustomTypeModelUIDField } from "./uid"; /** * Type identifier for a custom type field. */ export declare const CustomTypeModelFieldType: { readonly Boolean: "Boolean"; readonly Color: "Color"; readonly Date: "Date"; readonly Embed: "Embed"; readonly GeoPoint: "GeoPoint"; readonly Group: "Group"; readonly Image: "Image"; readonly Integration: "IntegrationFields"; readonly Link: "Link"; readonly Number: "Number"; readonly Select: "Select"; readonly Slices: "Slices"; readonly StructuredText: "StructuredText"; readonly Table: "Table"; readonly Text: "Text"; readonly Timestamp: "Timestamp"; readonly UID: "UID"; /** * @deprecated - Renamed to `Integration`. */ readonly IntegrationFields: "IntegrationFields"; /** * @deprecated - Legacy field type. Use `Number` instead. */ readonly Range: "Range"; /** * @deprecated - Legacy field type. Do not use. */ readonly Separator: "Separator"; /** * @deprecated - Legacy field type. Use `Slices` instead. */ readonly LegacySlices: "Choice"; }; /** * A custom type field. */ export type CustomTypeModelField = CustomTypeModelUIDField | CustomTypeModelGroupField | CustomTypeModelSliceZoneField | CustomTypeModelFieldForNestedGroup; /** * Any custom type field that is valid for a slice's primary section. */ export type CustomTypeModelFieldForSlicePrimary = CustomTypeModelGroupField | CustomTypeModelFieldForNestedGroup; /** * Any custom type field that is valid for a group field. */ export type CustomTypeModelFieldForGroup = CustomTypeModelNestedGroupField | CustomTypeModelFieldForNestedGroup; /** * Any custom type field that is valid for a nested group field. */ export type CustomTypeModelFieldForNestedGroup = CustomTypeModelBooleanField | CustomTypeModelColorField | CustomTypeModelDateField | CustomTypeModelEmbedField | CustomTypeModelGeoPointField | CustomTypeModelImageField | CustomTypeModelIntegrationField | CustomTypeModelContentRelationshipField | CustomTypeModelLinkField | CustomTypeModelLinkToMediaField | CustomTypeModelNumberField | CustomTypeModelRangeField | CustomTypeModelSelectField | CustomTypeModelRichTextField | CustomTypeModelTableField | CustomTypeModelTitleField | CustomTypeModelKeyTextField | CustomTypeModelTimestampField | CustomTypeModelSeparatorField;