contentful
Advanced tools
Comparing version 11.1.1 to 11.1.2
@@ -40,3 +40,3 @@ import axios from 'axios'; | ||
const config = Object.assign(Object.assign({}, defaultConfig), params); | ||
const userAgentHeader = getUserAgentHeader(`contentful.js/${"11.1.1"}`, config.application, config.integration); | ||
const userAgentHeader = getUserAgentHeader(`contentful.js/${"11.1.2"}`, config.application, config.integration); | ||
config.headers = Object.assign(Object.assign({}, config.headers), { 'Content-Type': 'application/vnd.contentful.delivery.v1+json', 'X-Contentful-User-Agent': userAgentHeader }); | ||
@@ -43,0 +43,0 @@ const http = createHttpClient(axios, config); |
@@ -303,3 +303,3 @@ import { encodeCPAResponse } from '@contentful/content-source-maps'; | ||
return { | ||
version: "11.1.1", | ||
version: "11.1.2", | ||
getSpace, | ||
@@ -306,0 +306,0 @@ getContentType, |
@@ -1,6 +0,6 @@ | ||
import { ContentfulCollection } from './collection'; | ||
import { LocaleCode } from './locale'; | ||
import { Metadata } from './metadata'; | ||
import { EntitySys } from './sys'; | ||
import { ChainModifiers } from './client'; | ||
import { ContentfulCollection } from './collection.js'; | ||
import { LocaleCode } from './locale.js'; | ||
import { Metadata } from './metadata.js'; | ||
import { EntitySys } from './sys.js'; | ||
import { ChainModifiers } from './client.js'; | ||
/** | ||
@@ -7,0 +7,0 @@ * @category Asset |
@@ -1,10 +0,10 @@ | ||
import { ContentType, ContentTypeCollection } from './content-type'; | ||
import { Space } from './space'; | ||
import { LocaleCode, LocaleCollection } from './locale'; | ||
import { AssetQueries, AssetsQueries, EntriesQueries, EntryQueries, EntrySkeletonType, TagQueries } from './query'; | ||
import { SyncCollection, SyncOptions, SyncQuery } from './sync'; | ||
import { Tag, TagCollection } from './tag'; | ||
import { AssetKey } from './asset-key'; | ||
import { Entry, EntryCollection } from './entry'; | ||
import { Asset, AssetCollection, AssetFields } from './asset'; | ||
import { ContentType, ContentTypeCollection } from './content-type.js'; | ||
import { Space } from './space.js'; | ||
import { LocaleCode, LocaleCollection } from './locale.js'; | ||
import { AssetQueries, AssetsQueries, EntriesQueries, EntryQueries, EntrySkeletonType, TagQueries } from './query/index.js'; | ||
import { SyncCollection, SyncOptions, SyncQuery } from './sync.js'; | ||
import { Tag, TagCollection } from './tag.js'; | ||
import { AssetKey } from './asset-key.js'; | ||
import { Entry, EntryCollection } from './entry.js'; | ||
import { Asset, AssetCollection, AssetFields } from './asset.js'; | ||
/** | ||
@@ -11,0 +11,0 @@ * Client chain modifiers used in all types that depend on the client configuration. |
@@ -1,3 +0,3 @@ | ||
import { AssetSys } from './asset'; | ||
import { EntrySys } from './entry'; | ||
import { AssetSys } from './asset.js'; | ||
import { EntrySys } from './entry.js'; | ||
/** | ||
@@ -4,0 +4,0 @@ * A wrapper object containing additional information for |
@@ -1,5 +0,5 @@ | ||
import { ContentfulCollection } from './collection'; | ||
import { EntryFields } from './entry'; | ||
import { SpaceLink, EnvironmentLink } from './link'; | ||
import { BaseSys } from './sys'; | ||
import { ContentfulCollection } from './collection.js'; | ||
import { EntryFields } from './entry.js'; | ||
import { SpaceLink, EnvironmentLink } from './link.js'; | ||
import { BaseSys } from './sys.js'; | ||
import type { BLOCKS, INLINES } from '@contentful/rich-text-types'; | ||
@@ -6,0 +6,0 @@ /** |
import { Document as RichTextDocument } from '@contentful/rich-text-types'; | ||
import { Asset } from './asset'; | ||
import { ContentfulCollection } from './collection'; | ||
import { ContentTypeLink, UnresolvedLink } from './link'; | ||
import { LocaleCode } from './locale'; | ||
import { Metadata } from './metadata'; | ||
import { EntrySkeletonType } from './query'; | ||
import { EntitySys } from './sys'; | ||
import { Asset } from './asset.js'; | ||
import { ContentfulCollection } from './collection.js'; | ||
import { ContentTypeLink, UnresolvedLink } from './link.js'; | ||
import { LocaleCode } from './locale.js'; | ||
import { Metadata } from './metadata.js'; | ||
import { EntrySkeletonType } from './query/index.js'; | ||
import { EntitySys } from './sys.js'; | ||
import { JsonArray, JsonObject } from 'type-fest'; | ||
import { ResourceLink } from './resource-link'; | ||
import { ChainModifiers } from './client'; | ||
import { ResourceLink } from './resource-link.js'; | ||
import { ChainModifiers } from './client.js'; | ||
/** | ||
@@ -13,0 +13,0 @@ * System managed metadata for entries |
@@ -1,2 +0,2 @@ | ||
import { ResourceLink } from './resource-link'; | ||
import { ResourceLink } from './resource-link.js'; | ||
/** | ||
@@ -3,0 +3,0 @@ * @category Link |
@@ -1,3 +0,3 @@ | ||
import { ContentfulCollection } from './collection'; | ||
import { BaseSys } from './sys'; | ||
import { ContentfulCollection } from './collection.js'; | ||
import { BaseSys } from './sys.js'; | ||
/** | ||
@@ -4,0 +4,0 @@ * @category Entity |
@@ -1,2 +0,2 @@ | ||
import { TagLink, TaxonomyConceptLink } from './link'; | ||
import { TagLink, TaxonomyConceptLink } from './link.js'; | ||
/** | ||
@@ -3,0 +3,0 @@ * User-controlled metadata |
@@ -1,3 +0,3 @@ | ||
import { EntryFields, EntryFieldType, EntryFieldTypes } from '../entry'; | ||
import { ConditionalQueries, EntryFieldsConditionalQueries, EntrySkeletonType } from './util'; | ||
import { EntryFields, EntryFieldType, EntryFieldTypes } from '../entry.js'; | ||
import { ConditionalQueries, EntryFieldsConditionalQueries, EntrySkeletonType } from './util.js'; | ||
type SupportedTypes = EntryFields.Symbol | EntryFields.Symbol[] | EntryFields.Text | EntryFields.Integer | EntryFields.Number | EntryFields.Date | EntryFields.Boolean | undefined; | ||
@@ -4,0 +4,0 @@ type SupportedEntryFieldTypes = EntryFieldTypes.Symbol | EntryFieldTypes.Array<EntryFieldTypes.Symbol> | EntryFieldTypes.Text | EntryFieldTypes.Integer | EntryFieldTypes.Number | EntryFieldTypes.Date | EntryFieldTypes.Boolean | undefined; |
@@ -1,4 +0,4 @@ | ||
import { EntryField, EntryFieldType } from '../entry'; | ||
import { ConditionalFixedQueries, FieldsType, EntrySkeletonType } from './util'; | ||
import { AssetDetails, AssetFile } from '../asset'; | ||
import { EntryField, EntryFieldType } from '../entry.js'; | ||
import { ConditionalFixedQueries, FieldsType, EntrySkeletonType } from './util.js'; | ||
import { AssetDetails, AssetFile } from '../asset.js'; | ||
/** | ||
@@ -5,0 +5,0 @@ * Check for existence of provided fields |
import { ConditionalPick } from 'type-fest'; | ||
import { EntryFieldTypes } from '../entry'; | ||
import { EntryFieldTypes } from '../entry.js'; | ||
type Types = EntryFieldTypes.Location | undefined; | ||
@@ -4,0 +4,0 @@ export type ProximitySearchFilterInput = [number, number]; |
@@ -1,6 +0,6 @@ | ||
import { EntrySkeletonType, FieldsType } from './util'; | ||
import { EntryFields, EntryFieldType, EntryFieldTypes, EntrySys } from '../entry'; | ||
import { AssetSys } from '../asset'; | ||
import { EntrySkeletonType, FieldsType } from './util.js'; | ||
import { EntryFields, EntryFieldType, EntryFieldTypes, EntrySys } from '../entry.js'; | ||
import { AssetSys } from '../asset.js'; | ||
import { ConditionalPick } from 'type-fest'; | ||
import { TagSys } from '../tag'; | ||
import { TagSys } from '../tag.js'; | ||
export type SupportedTypes = EntryFields.Symbol | EntryFields.Integer | EntryFields.Number | EntryFields.Date | EntryFields.Boolean | EntryFields.Location | undefined; | ||
@@ -7,0 +7,0 @@ export type SupportedEntryFieldTypes = EntryFieldTypes.Symbol | EntryFieldTypes.Integer | EntryFieldTypes.Number | EntryFieldTypes.Date | EntryFieldTypes.Boolean | EntryFieldTypes.Location | undefined; |
@@ -1,18 +0,18 @@ | ||
import { AssetDetails, AssetFile, AssetMimeType, AssetSys } from '../asset'; | ||
import { ChainModifiers } from '../client'; | ||
import { EntrySys } from '../entry'; | ||
import { TagLink, TaxonomyConceptLink } from '../link'; | ||
import { Metadata } from '../metadata'; | ||
import { TagSys } from '../tag'; | ||
import { EntryFieldsEqualityFilter, EntryFieldsInequalityFilter, EqualityFilter, InequalityFilter } from './equality'; | ||
import { EntryFieldsExistenceFilter, ExistenceFilter } from './existence'; | ||
import { LocationSearchFilters } from './location'; | ||
import { AssetOrderFilter, EntryOrderFilter, EntryOrderFilterWithFields, TagOrderFilter } from './order'; | ||
import { EntryFieldsRangeFilters, RangeFilters } from './range'; | ||
import { ReferenceSearchFilters } from './reference'; | ||
import { EntryFieldsFullTextSearchFilters, FullTextSearchFilters } from './search'; | ||
import { AssetSelectFilter, EntrySelectFilter, EntrySelectFilterWithFields } from './select'; | ||
import { EntryFieldsSetFilter } from './set'; | ||
import { EntryFieldsSubsetFilters, SubsetFilters } from './subset'; | ||
import { ConditionalFixedQueries, ConditionalListQueries, EntrySkeletonType, FieldsType } from './util'; | ||
import { AssetDetails, AssetFile, AssetMimeType, AssetSys } from '../asset.js'; | ||
import { ChainModifiers } from '../client.js'; | ||
import { EntrySys } from '../entry.js'; | ||
import { TagLink, TaxonomyConceptLink } from '../link.js'; | ||
import { Metadata } from '../metadata.js'; | ||
import { TagSys } from '../tag.js'; | ||
import { EntryFieldsEqualityFilter, EntryFieldsInequalityFilter, EqualityFilter, InequalityFilter } from './equality.js'; | ||
import { EntryFieldsExistenceFilter, ExistenceFilter } from './existence.js'; | ||
import { LocationSearchFilters } from './location.js'; | ||
import { AssetOrderFilter, EntryOrderFilter, EntryOrderFilterWithFields, TagOrderFilter } from './order.js'; | ||
import { EntryFieldsRangeFilters, RangeFilters } from './range.js'; | ||
import { ReferenceSearchFilters } from './reference.js'; | ||
import { EntryFieldsFullTextSearchFilters, FullTextSearchFilters } from './search.js'; | ||
import { AssetSelectFilter, EntrySelectFilter, EntrySelectFilterWithFields } from './select.js'; | ||
import { EntryFieldsSetFilter } from './set.js'; | ||
import { EntryFieldsSubsetFilters, SubsetFilters } from './subset.js'; | ||
import { ConditionalFixedQueries, ConditionalListQueries, EntrySkeletonType, FieldsType } from './util.js'; | ||
export type FixedPagedOptions = { | ||
@@ -19,0 +19,0 @@ skip?: number; |
@@ -1,3 +0,3 @@ | ||
import { EntryFields, EntryFieldType, EntryFieldTypes } from '../entry'; | ||
import { ConditionalQueries, EntryFieldsConditionalQueries, EntrySkeletonType } from './util'; | ||
import { EntryFields, EntryFieldType, EntryFieldTypes } from '../entry.js'; | ||
import { ConditionalQueries, EntryFieldsConditionalQueries, EntrySkeletonType } from './util.js'; | ||
type RangeFilterTypes = 'lt' | 'lte' | 'gt' | 'gte'; | ||
@@ -4,0 +4,0 @@ type SupportedTypes = EntryFields.Date | EntryFields.Number | EntryFields.Integer | undefined; |
@@ -1,2 +0,2 @@ | ||
import { EntryFieldTypes } from '../entry'; | ||
import { EntryFieldTypes } from '../entry.js'; | ||
import { ConditionalPick } from 'type-fest'; | ||
@@ -3,0 +3,0 @@ type SupportedTypes = EntryFieldTypes.Array<EntryFieldTypes.EntryLink<any>> | EntryFieldTypes.EntryLink<any> | undefined; |
@@ -1,3 +0,3 @@ | ||
import { EntryFields, EntryFieldTypes } from '../entry'; | ||
import { ConditionalFixedQueries, FieldsType } from './util'; | ||
import { EntryFields, EntryFieldTypes } from '../entry.js'; | ||
import { ConditionalFixedQueries, FieldsType } from './util.js'; | ||
type SupportedTypes = EntryFields.Text | EntryFields.RichText | EntryFields.Symbol | EntryFields.Symbol[] | undefined; | ||
@@ -4,0 +4,0 @@ type SupportedEntryFieldTypes = EntryFieldTypes.Text | EntryFieldTypes.RichText | EntryFieldTypes.Symbol | EntryFieldTypes.Array<EntryFieldTypes.Symbol> | undefined; |
@@ -1,5 +0,5 @@ | ||
import { FieldsType } from './util'; | ||
import { EntrySys } from '../entry'; | ||
import { AssetSys } from '../asset'; | ||
import { Metadata } from '../metadata'; | ||
import { FieldsType } from './util.js'; | ||
import { EntrySys } from '../entry.js'; | ||
import { AssetSys } from '../asset.js'; | ||
import { Metadata } from '../metadata.js'; | ||
export type SelectFilterPaths<Fields extends FieldsType, Prefix extends string> = `${Prefix}.${keyof Fields & string}`; | ||
@@ -6,0 +6,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import { EntryFieldType, EntryFieldTypes } from '..'; | ||
import { EntryFieldsConditionalListQueries } from './util'; | ||
import { EntryFieldType, EntryFieldTypes } from '../index.js'; | ||
import { EntryFieldsConditionalListQueries } from './util.js'; | ||
type SupportedTypes = EntryFieldTypes.Symbol | EntryFieldTypes.Array<EntryFieldTypes.Symbol> | EntryFieldTypes.Text | undefined; | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import { EntryFields, EntryFieldType, EntryFieldTypes } from '..'; | ||
import { ConditionalListQueries, EntryFieldsConditionalListQueries } from './util'; | ||
import { EntryFields, EntryFieldType, EntryFieldTypes } from '../index.js'; | ||
import { ConditionalListQueries, EntryFieldsConditionalListQueries } from './util.js'; | ||
type SubsetFilterTypes = 'in' | 'nin'; | ||
@@ -4,0 +4,0 @@ type SupportedTypes = EntryFields.Symbol | EntryFields.Symbol[] | EntryFields.Text | EntryFields.Integer | EntryFields.Number | EntryFields.Date | EntryFields.Boolean | undefined; |
import { ConditionalPick } from 'type-fest'; | ||
import { BaseFieldMap, EntryFieldType, EntryFieldTypes } from '../entry'; | ||
import { BaseFieldMap, EntryFieldType, EntryFieldTypes } from '../entry.js'; | ||
/** | ||
@@ -4,0 +4,0 @@ * @category Entity |
@@ -1,3 +0,3 @@ | ||
import { Locale } from './locale'; | ||
import { BaseSys } from './sys'; | ||
import { Locale } from './locale.js'; | ||
import { BaseSys } from './sys.js'; | ||
/** | ||
@@ -4,0 +4,0 @@ * System managed metadata for spaces |
@@ -1,7 +0,7 @@ | ||
import { Asset } from './asset'; | ||
import { Entry } from './entry'; | ||
import { EntitySys } from './sys'; | ||
import { EntrySkeletonType } from './query'; | ||
import { LocaleCode } from './locale'; | ||
import { ChainModifiers } from './client'; | ||
import { Asset } from './asset.js'; | ||
import { Entry } from './entry.js'; | ||
import { EntitySys } from './sys.js'; | ||
import { EntrySkeletonType } from './query/index.js'; | ||
import { LocaleCode } from './locale.js'; | ||
import { ChainModifiers } from './client.js'; | ||
/** | ||
@@ -8,0 +8,0 @@ * @category Sync |
import { ContentSourceMapsLookup, CPAContentSourceMaps } from '@contentful/content-source-maps'; | ||
import { EntryFields } from './entry'; | ||
import { EnvironmentLink, SpaceLink } from './link'; | ||
import { EntryFields } from './entry.js'; | ||
import { EnvironmentLink, SpaceLink } from './link.js'; | ||
/** | ||
@@ -5,0 +5,0 @@ * Definition of common part of system managed metadata |
@@ -1,4 +0,4 @@ | ||
import { EntitySys } from './sys'; | ||
import { ContentfulCollection } from './collection'; | ||
import { UserLink } from './link'; | ||
import { EntitySys } from './sys.js'; | ||
import { ContentfulCollection } from './collection.js'; | ||
import { UserLink } from './link.js'; | ||
/** | ||
@@ -5,0 +5,0 @@ * System managed metadata for tags |
@@ -1,2 +0,2 @@ | ||
import { ChainModifiers } from '../types/client'; | ||
import { ChainModifiers } from '../types/client.js'; | ||
export type ChainOption<Modifiers extends ChainModifiers = ChainModifiers> = { | ||
@@ -3,0 +3,0 @@ withoutLinkResolution: ChainModifiers extends Modifiers ? boolean : 'WITHOUT_LINK_RESOLUTION' extends Modifiers ? true : false; |
{ | ||
"name": "contentful", | ||
"description": "Client for Contentful's Content Delivery API", | ||
"version": "11.1.1", | ||
"version": "11.1.2", | ||
"homepage": "https://www.contentful.com/developers/documentation/content-delivery-api/", | ||
@@ -6,0 +6,0 @@ "type": "module", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
1657401