@prismicio/client
Version:
The official JavaScript + TypeScript client library for Prismic
59 lines (58 loc) • 3.81 kB
text/typescript
import { CustomTypeModelBooleanField } from "./boolean.cjs";
import { CustomTypeModelColorField } from "./color.cjs";
import { CustomTypeModelLinkField } from "./link.cjs";
import { CustomTypeModelContentRelationshipField } from "./contentRelationship.cjs";
import { CustomTypeModelDateField } from "./date.cjs";
import { CustomTypeModelEmbedField } from "./embed.cjs";
import { CustomTypeModelGeoPointField } from "./geoPoint.cjs";
import { CustomTypeModelGroupField, CustomTypeModelNestedGroupField } from "./group.cjs";
import { CustomTypeModelImageField } from "./image.cjs";
import { CustomTypeModelKeyTextField } from "./keyText.cjs";
import { CustomTypeModelLinkToMediaField } from "./linkToMedia.cjs";
import { CustomTypeModelNumberField } from "./number.cjs";
import { CustomTypeModelRangeField } from "./range.cjs";
import { CustomTypeModelRichTextField } from "./richText.cjs";
import { CustomTypeModelSelectField } from "./select.cjs";
import { CustomTypeModelSeparatorField } from "./separator.cjs";
import { CustomTypeModelSliceZoneField } from "./sliceZone.cjs";
import { CustomTypeModelTableField } from "./table.cjs";
import { CustomTypeModelTimestampField } from "./timestamp.cjs";
import { CustomTypeModelTitleField } from "./title.cjs";
import { CustomTypeModelUIDField } from "./uid.cjs";
import { CustomTypeModelIntegrationField } from "./integration.cjs";
//#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.cts.map