@prismicio/types
Advanced tools
Comparing version 0.1.8 to 0.1.9
@@ -204,4 +204,6 @@ declare type EmptyObjectField = Record<string, never>; | ||
/** | ||
* An individual image within an image field. The base image and each thumbnail | ||
* An individual image within an Image field. The base image and each thumbnail | ||
* uses this type. | ||
* | ||
* @see {@link ImageField} for a full Image field type. | ||
*/ | ||
@@ -372,7 +374,14 @@ interface ImageFieldImage { | ||
/** | ||
* Integration Field for Custom APIs | ||
* Integration Fields for Custom APIs | ||
* | ||
* @see More details: {@link https://prismic.io/docs/core-concepts/integration-fields-setup} | ||
*/ | ||
declare type IntegrationField<Blob = unknown> = Blob | null; | ||
declare type IntegrationFields<Blob = unknown> = { | ||
id: string; | ||
title?: string; | ||
description?: string; | ||
image_url?: string; | ||
last_update: number; | ||
blob: Blob; | ||
} | null; | ||
/** | ||
@@ -413,3 +422,3 @@ * Slice - Sections of your website | ||
declare type SliceZone<Slices extends Slice | SharedSlice = Slice | SharedSlice> = Slices[]; | ||
declare type AnyRegularField = TitleField | RichTextField | ImageField | RelationField | LinkField | LinkToMediaField | DateField | TimestampField | ColorField | NumberField | KeyTextField | SelectField | BooleanField | EmbedField | GeoPointField | IntegrationField; | ||
declare type AnyRegularField = TitleField | RichTextField | ImageField | RelationField | LinkField | LinkToMediaField | DateField | TimestampField | ColorField | NumberField | KeyTextField | SelectField | BooleanField | EmbedField | GeoPointField | IntegrationFields; | ||
@@ -499,3 +508,3 @@ /** | ||
*/ | ||
declare type CustomTypeModelFieldForGroup = CustomTypeModelBooleanField | CustomTypeModelColorField | CustomTypeModelDateField | CustomTypeModelEmbedField | CustomTypeModelGeoPointField | CustomTypeModelImageField | CustomTypeModelIntegrationField | CustomTypeModelContentRelationshipField | CustomTypeModelLinkField | CustomTypeModelLinkToMediaField | CustomTypeModelNumberField | CustomTypeModelSelectField | CustomTypeModelRichTextField | CustomTypeModelTitleField | CustomTypeModelKeyTextField | CustomTypeModelTimestampField; | ||
declare type CustomTypeModelFieldForGroup = CustomTypeModelBooleanField | CustomTypeModelColorField | CustomTypeModelDateField | CustomTypeModelEmbedField | CustomTypeModelGeoPointField | CustomTypeModelImageField | CustomTypeModelIntegrationFieldsField | CustomTypeModelContentRelationshipField | CustomTypeModelLinkField | CustomTypeModelLinkToMediaField | CustomTypeModelNumberField | CustomTypeModelSelectField | CustomTypeModelRichTextField | CustomTypeModelTitleField | CustomTypeModelKeyTextField | CustomTypeModelTimestampField; | ||
/** | ||
@@ -629,6 +638,7 @@ * Type identifier for a Custom Type field. | ||
*/ | ||
interface CustomTypeModelIntegrationField { | ||
interface CustomTypeModelIntegrationFieldsField { | ||
type: CustomTypeModelFieldType.IntegrationFields; | ||
config: { | ||
label: string; | ||
placeholder?: string; | ||
catalog: string; | ||
@@ -899,2 +909,2 @@ }; | ||
export { AlternateLanguage, AnyRegularField, BooleanField, ColorField, CustomTypeModel, CustomTypeModelBooleanField, CustomTypeModelColorField, CustomTypeModelContentRelationshipField, CustomTypeModelDateField, CustomTypeModelDefinition, CustomTypeModelEmbedField, CustomTypeModelField, CustomTypeModelFieldForGroup, CustomTypeModelFieldType, CustomTypeModelGeoPointField, CustomTypeModelGroupField, CustomTypeModelImageConstraint, CustomTypeModelImageField, CustomTypeModelImageThumbnail, CustomTypeModelIntegrationField, CustomTypeModelKeyTextField, CustomTypeModelLinkField, CustomTypeModelLinkSelectType, CustomTypeModelLinkToMediaField, CustomTypeModelNumberField, CustomTypeModelRichTextField, CustomTypeModelRichTextMultiField, CustomTypeModelRichTextSingleField, CustomTypeModelSelectField, CustomTypeModelSharedSlice, CustomTypeModelSlice, CustomTypeModelSliceDisplay, CustomTypeModelSliceLabel, CustomTypeModelSliceType, CustomTypeModelSliceZoneField, CustomTypeModelTab, CustomTypeModelTimestampField, CustomTypeModelTitleField, CustomTypeModelUIDField, DateField, EmbedField, EmbedType, EmptyLinkField, FilledLinkToDocumentField, FilledLinkToMediaField, FilledLinkToWebField, GeoPointField, GroupField, ImageField, IntegrationField, KeyTextField, LinkField, LinkToMediaField, LinkType, NumberField, PrismicDocument, PrismicDocumentHeader, RTAnyNode, RTBlockNode, RTEmNode, RTEmbedNode, RTHeading1Node, RTHeading2Node, RTHeading3Node, RTHeading4Node, RTHeading5Node, RTHeading6Node, RTImageNode, RTInlineNode, RTLabelNode, RTLinkNode, RTListItemNode, RTListNode, RTNode, RTOListItemNode, RTOListNode, RTParagraphNode, RTPreformattedNode, RTSpanNode, RTSpanNodeBase, RTStrongNode, RTTextNode, RTTextNodeBase, RelationField, RichTextField, RichTextNodeType, SelectField, SharedSlice, SharedSliceModel, SharedSliceModelVariation, SharedSliceVariation, Slice, SliceZone, TimestampField, TitleField }; | ||
export { AlternateLanguage, AnyRegularField, BooleanField, ColorField, CustomTypeModel, CustomTypeModelBooleanField, CustomTypeModelColorField, CustomTypeModelContentRelationshipField, CustomTypeModelDateField, CustomTypeModelDefinition, CustomTypeModelEmbedField, CustomTypeModelField, CustomTypeModelFieldForGroup, CustomTypeModelFieldType, CustomTypeModelGeoPointField, CustomTypeModelGroupField, CustomTypeModelImageConstraint, CustomTypeModelImageField, CustomTypeModelImageThumbnail, CustomTypeModelIntegrationFieldsField, CustomTypeModelKeyTextField, CustomTypeModelLinkField, CustomTypeModelLinkSelectType, CustomTypeModelLinkToMediaField, CustomTypeModelNumberField, CustomTypeModelRichTextField, CustomTypeModelRichTextMultiField, CustomTypeModelRichTextSingleField, CustomTypeModelSelectField, CustomTypeModelSharedSlice, CustomTypeModelSlice, CustomTypeModelSliceDisplay, CustomTypeModelSliceLabel, CustomTypeModelSliceType, CustomTypeModelSliceZoneField, CustomTypeModelTab, CustomTypeModelTimestampField, CustomTypeModelTitleField, CustomTypeModelUIDField, DateField, EmbedField, EmbedType, EmptyLinkField, FilledLinkToDocumentField, FilledLinkToMediaField, FilledLinkToWebField, GeoPointField, GroupField, ImageField, ImageFieldImage, IntegrationFields, KeyTextField, LinkField, LinkToMediaField, LinkType, NumberField, PrismicDocument, PrismicDocumentHeader, RTAnyNode, RTBlockNode, RTEmNode, RTEmbedNode, RTHeading1Node, RTHeading2Node, RTHeading3Node, RTHeading4Node, RTHeading5Node, RTHeading6Node, RTImageNode, RTInlineNode, RTLabelNode, RTLinkNode, RTListItemNode, RTListNode, RTNode, RTOListItemNode, RTOListNode, RTParagraphNode, RTPreformattedNode, RTSpanNode, RTSpanNodeBase, RTStrongNode, RTTextNode, RTTextNodeBase, RelationField, RichTextField, RichTextNodeType, SelectField, SharedSlice, SharedSliceModel, SharedSliceModelVariation, SharedSliceVariation, Slice, SliceZone, TimestampField, TitleField }; |
{ | ||
"name": "@prismicio/types", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"description": "Type definitions for Prismic related structure", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
53628
1100
0