Options
All
  • Public
  • Public/Protected
  • All
Menu

contentful.js - v10.0.0-beta-v10.7

Index

Other

AssetCollection: ContentfulCollection<Asset>
AssetKey: { policy: string; secret: string }

Type declaration

  • policy: string
  • secret: string
AssetMimeType: "attachment" | "plaintext" | "image" | "audio" | "video" | "richtext" | "presentation" | "spreadsheet" | "pdfdocument" | "archive" | "code" | "markup"
AssetQueries<Fields>: Partial<AssetFieldsQueries<Fields> & SysQueries<Pick<AssetSys, "createdAt" | "updatedAt" | "revision" | "id" | "type">> & FixedQueryOptions & FixedPagedOptions & { mimetype_group?: AssetMimeType } & Record<string, any>>

Type parameters

  • Fields: FieldsType = FieldsType

AssetSys: EntitySys
BasicEntryField: Symbol | Text | Integer | Number | Date | Boolean | Location | RichText | Object
ClientLogLevel: "error" | "warning" | "info" | string
ContentTypeCollection: ContentfulCollection<ContentType>
ContentTypeFieldType: "Symbol" | "Text" | "Integer" | "Number" | "Date" | "Boolean" | "Location" | "Link" | "Array" | "Object" | "RichText"
ContentTypeLink: Link<"ContentType">
ContentfulClientApi: { withAllLocales: { withoutLinkResolution: ClientWithAllLocalesAndWithoutLinkResolution; withoutUnresolvableLinks: ClientWithAllLocalesAndWithLinkResolutionAndWithoutUnresolvableLinks } & ClientWithAllLocalesAndWithLinkResolutionAndWithUnresolvableLinks; withoutLinkResolution: { withAllLocales: ClientWithAllLocalesAndWithoutLinkResolution } & ClientWithoutLinkResolution; withoutUnresolvableLinks: { withAllLocales: ClientWithAllLocalesAndWithLinkResolutionAndWithoutUnresolvableLinks } & ClientWithLinkResolutionAndWithoutUnresolvableLinks } & DefaultClient
EntriesQueries<Fields>: Partial<EntryFieldsQueries<Fields> & SysQueries<Pick<EntrySys, "createdAt" | "updatedAt" | "revision" | "id" | "type">> & FixedQueryOptions & FixedPagedOptions & { content_type?: string } & Record<string, any> & { resolveLinks?: never }>

Type parameters

  • Fields: FieldsType = FieldsType

EntryCollection<T>: AbstractEntryCollection<Entry<T>>

Type parameters

  • T

EntryCollectionWithAllLocalesAndWithLinkResolutionAndWithUnresolvableLinks<Fields, Locales>: AbstractEntryCollection<EntryWithAllLocalesAndWithLinkResolutionAndWithUnresolvableLinks<Fields, Locales>>

Type parameters

EntryCollectionWithAllLocalesAndWithLinkResolutionAndWithoutUnresolvableLinks<Fields, Locales>: AbstractEntryCollection<EntryWithAllLocalesAndWithLinkResolutionAndWithoutUnresolvableLinks<Fields, Locales>>

Type parameters

EntryCollectionWithAllLocalesAndWithoutLinkResolution<Fields, Locales>: AbstractEntryCollection<EntryWithAllLocalesAndWithoutLinkResolution<Fields, Locales>>

Type parameters

EntryCollectionWithLinkResolutionAndWithUnresolvableLinks<T>: AbstractEntryCollection<EntryWithLinkResolutionAndWithUnresolvableLinks<T>>

Type parameters

  • T

EntryCollectionWithLinkResolutionAndWithoutUnresolvableLinks<Fields>: AbstractEntryCollection<EntryWithLinkResolutionAndWithoutUnresolvableLinks<Fields>>

Type parameters

  • Fields

EntryCollectionWithoutLinkResolution<T>: EntryCollection<T>

Type parameters

  • T

EntryLink: Link<"Entry">
EntryWithAllLocalesAndWithLinkResolutionAndWithUnresolvableLinks<Fields, Locales>: { fields: { [ FieldName in keyof Fields]: { [ LocaleName in Locales]?: Fields[FieldName] extends EntryFields.Link<infer LinkedEntryFields> ? EntryWithAllLocalesAndWithLinkResolutionAndWithUnresolvableLinks<LinkedEntryFields, Locales> | undefined : Fields[FieldName] extends EntryFields.Link<infer LinkedEntryFields>[] ? EntryWithAllLocalesAndWithLinkResolutionAndWithUnresolvableLinks<LinkedEntryFields, Locales>[] | undefined : Fields[FieldName] } }; metadata: Metadata; sys: EntrySys }

Type parameters

Type declaration

EntryWithAllLocalesAndWithLinkResolutionAndWithoutUnresolvableLinks<Fields, Locales>: { fields: { [ FieldName in keyof Fields]: { [ LocaleName in Locales]?: Fields[FieldName] extends EntryFields.Link<infer LinkedEntryFields> ? EntryWithAllLocalesAndWithLinkResolutionAndWithoutUnresolvableLinks<LinkedEntryFields, Locales> | undefined : Fields[FieldName] extends EntryFields.Link<infer LinkedEntryFields>[] ? EntryWithAllLocalesAndWithLinkResolutionAndWithoutUnresolvableLinks<LinkedEntryFields, Locales>[] | undefined : Fields[FieldName] } }; metadata: Metadata; sys: EntrySys }

Type parameters

Type declaration

EntryWithLinkResolutionAndWithUnresolvableLinks<Fields>: { fields: { [ FieldName in keyof Fields]: Fields[FieldName] extends EntryFields.Link<infer LinkedEntryFields> ? EntryWithLinkResolutionAndWithUnresolvableLinks<LinkedEntryFields> | EntryLink : Fields[FieldName] extends EntryFields.Link<infer LinkedEntryFields>[] ? (EntryWithLinkResolutionAndWithUnresolvableLinks<LinkedEntryFields> | EntryLink)[] : Fields[FieldName] }; metadata: Metadata; sys: EntrySys }

Type parameters

  • Fields: FieldsType

Type declaration

EntryWithLinkResolutionAndWithoutUnresolvableLinks<Fields>: { fields: { [ FieldName in keyof Fields]: Fields[FieldName] extends EntryFields.Link<infer LinkedEntryFields> ? EntryWithLinkResolutionAndWithoutUnresolvableLinks<LinkedEntryFields> | undefined : Fields[FieldName] extends EntryFields.Link<infer LinkedEntryFields>[] ? EntryWithLinkResolutionAndWithoutUnresolvableLinks<LinkedEntryFields>[] | undefined : Fields[FieldName] }; metadata: Metadata; sys: EntrySys }

Type parameters

  • Fields: FieldsType

Type declaration

EntryWithoutLinkResolution<T>: Entry<T>

Type parameters

  • T

EnvironmentLink: Link<"Environment">
GetGlobalOptions: (globalOptions?: GlobalOptionsParams) => Required<GlobalOptionsParams>

Type declaration

    • (globalOptions?: GlobalOptionsParams): Required<GlobalOptionsParams>
    • Parameters

      • Optional globalOptions: GlobalOptionsParams

      Returns Required<GlobalOptionsParams>

LinkType: "Space" | "ContentType" | "Environment" | "Entry" | "Tag" | "User"
LocaleCode: string
LocaleCollection: ContentfulCollection<Locale>
Metadata: { tags: { sys: TagLink }[] }

Type declaration

SpaceLink: Link<"Space">
Tag: { name: string; sys: TagSys }

Type declaration

TagCollection: ContentfulCollection<Tag>
TagLink: Link<"Tag">
UserLink: Link<"User">