@prismicio/client
Version:
The official JavaScript + TypeScript client library for Prismic
82 lines (80 loc) • 3.85 kB
TypeScript
import { CustomTypeModelBooleanField } from "./boolean.js";
import { CustomTypeModelColorField } from "./color.js";
import { CustomTypeModelLinkField } from "./link.js";
import { CustomTypeModelContentRelationshipField } from "./contentRelationship.js";
import { CustomTypeModelDateField } from "./date.js";
import { CustomTypeModelEmbedField } from "./embed.js";
import { CustomTypeModelGeoPointField } from "./geoPoint.js";
import { CustomTypeModelGroupField, CustomTypeModelNestedGroupField } from "./group.js";
import { CustomTypeModelImageField } from "./image.js";
import { CustomTypeModelKeyTextField } from "./keyText.js";
import { CustomTypeModelLinkToMediaField } from "./linkToMedia.js";
import { CustomTypeModelNumberField } from "./number.js";
import { CustomTypeModelRangeField } from "./range.js";
import { CustomTypeModelRichTextField } from "./richText.js";
import { CustomTypeModelSelectField } from "./select.js";
import { CustomTypeModelSeparatorField } from "./separator.js";
import { CustomTypeModelSliceZoneField } from "./sliceZone.js";
import { CustomTypeModelTableField } from "./table.js";
import { CustomTypeModelTimestampField } from "./timestamp.js";
import { CustomTypeModelTitleField } from "./title.js";
import { CustomTypeModelUIDField } from "./uid.js";
import { CustomTypeModelIntegrationField } from "./integration.js";
//#region src/types/model/types.d.ts
/**
* Type identifier for a custom type field.
*/
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.
*/
type CustomTypeModelField = CustomTypeModelUIDField | CustomTypeModelGroupField | CustomTypeModelSliceZoneField | CustomTypeModelFieldForNestedGroup;
/**
* Any custom type field that is valid for a slice's primary section.
*/
type CustomTypeModelFieldForSlicePrimary = CustomTypeModelGroupField | CustomTypeModelFieldForNestedGroup;
/**
* Any custom type field that is valid for a group field.
*/
type CustomTypeModelFieldForGroup = CustomTypeModelNestedGroupField | CustomTypeModelFieldForNestedGroup;
/**
* Any custom type field that is valid for a nested group field.
*/
type CustomTypeModelFieldForNestedGroup = CustomTypeModelBooleanField | CustomTypeModelColorField | CustomTypeModelDateField | CustomTypeModelEmbedField | CustomTypeModelGeoPointField | CustomTypeModelImageField | CustomTypeModelIntegrationField | CustomTypeModelContentRelationshipField | CustomTypeModelLinkField | CustomTypeModelLinkToMediaField | CustomTypeModelNumberField | CustomTypeModelRangeField | CustomTypeModelSelectField | CustomTypeModelRichTextField | CustomTypeModelTableField | CustomTypeModelTitleField | CustomTypeModelKeyTextField | CustomTypeModelTimestampField | CustomTypeModelSeparatorField;
//#endregion
export { CustomTypeModelField, CustomTypeModelFieldForGroup, CustomTypeModelFieldForNestedGroup, CustomTypeModelFieldForSlicePrimary, CustomTypeModelFieldType };
//# sourceMappingURL=types.d.ts.map