contentful 11.4.4 → 11.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contentful.browser.js +2679 -2669
- package/dist/contentful.browser.min.js +1 -1
- package/dist/contentful.cjs +2436 -2431
- package/dist/esm/contentful.js +1 -1
- package/dist/esm/create-contentful-api.js +5 -5
- package/dist/stats-browser-min.html +2230 -2123
- package/dist/types/create-contentful-api.d.ts +3 -3
- package/dist/types/make-client.d.ts +1 -1
- package/dist/types/paged-sync.d.ts +2 -2
- package/dist/types/types/asset.d.ts +5 -5
- package/dist/types/types/client.d.ts +11 -11
- package/dist/types/types/collection.d.ts +2 -2
- package/dist/types/types/concept-scheme.d.ts +2 -2
- package/dist/types/types/concept.d.ts +2 -2
- package/dist/types/types/content-type.d.ts +4 -4
- package/dist/types/types/entry.d.ts +11 -11
- package/dist/types/types/link.d.ts +1 -1
- package/dist/types/types/locale.d.ts +2 -2
- package/dist/types/types/metadata.d.ts +1 -1
- package/dist/types/types/query/equality.d.ts +2 -2
- package/dist/types/types/query/existence.d.ts +3 -3
- package/dist/types/types/query/location.d.ts +2 -2
- package/dist/types/types/query/order.d.ts +5 -5
- package/dist/types/types/query/query.d.ts +17 -17
- package/dist/types/types/query/range.d.ts +2 -2
- package/dist/types/types/query/reference.d.ts +2 -2
- package/dist/types/types/query/search.d.ts +2 -2
- package/dist/types/types/query/select.d.ts +4 -4
- package/dist/types/types/query/set.d.ts +2 -2
- package/dist/types/types/query/subset.d.ts +2 -2
- package/dist/types/types/query/util.d.ts +2 -2
- package/dist/types/types/space.d.ts +2 -2
- package/dist/types/types/sync.d.ts +6 -6
- package/dist/types/types/sys.d.ts +3 -3
- package/dist/types/types/tag.d.ts +3 -3
- package/dist/types/utils/client-helpers.d.ts +1 -1
- package/package.json +16 -13
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Contentful Delivery API Client. Contains methods which allow access to the
|
|
3
3
|
* different kinds of entities present in Contentful (Entries, Assets, etc).
|
|
4
4
|
*/
|
|
5
|
-
import { AxiosInstance } from 'contentful-sdk-core';
|
|
6
|
-
import { GetGlobalOptions } from './create-global-options.js';
|
|
5
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
6
|
+
import type { GetGlobalOptions } from './create-global-options.js';
|
|
7
7
|
import type { ContentfulClientApi } from './types/index.js';
|
|
8
|
-
import { ChainOptions } from './utils/client-helpers.js';
|
|
8
|
+
import type { ChainOptions } from './utils/client-helpers.js';
|
|
9
9
|
export interface CreateContentfulApiParams {
|
|
10
10
|
http: AxiosInstance;
|
|
11
11
|
getGlobalOptions: GetGlobalOptions;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CreateContentfulApiParams } from './create-contentful-api.js';
|
|
1
|
+
import type { CreateContentfulApiParams } from './create-contentful-api.js';
|
|
2
2
|
import type { ContentfulClientApi } from './types/index.js';
|
|
3
3
|
export declare const makeClient: ({ http, getGlobalOptions, }: CreateContentfulApiParams) => ContentfulClientApi<undefined>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AxiosInstance } from 'contentful-sdk-core';
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import type { SyncCollection, SyncOptions, SyncQuery, LocaleCode, EntrySkeletonType } from './types/index.js';
|
|
3
|
-
import { ChainOptions, ModifiersFromOptions } from './utils/client-helpers.js';
|
|
3
|
+
import type { ChainOptions, ModifiersFromOptions } from './utils/client-helpers.js';
|
|
4
4
|
/**
|
|
5
5
|
* Retrieves all the available pages for a sync operation
|
|
6
6
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ContentfulCollection } from './collection.js';
|
|
2
|
-
import { LocaleCode } from './locale.js';
|
|
3
|
-
import { Metadata } from './metadata.js';
|
|
4
|
-
import { EntitySys } from './sys.js';
|
|
5
|
-
import { ChainModifiers } from './client.js';
|
|
1
|
+
import type { ContentfulCollection } from './collection.js';
|
|
2
|
+
import type { LocaleCode } from './locale.js';
|
|
3
|
+
import type { Metadata } from './metadata.js';
|
|
4
|
+
import type { EntitySys } from './sys.js';
|
|
5
|
+
import type { ChainModifiers } from './client.js';
|
|
6
6
|
/**
|
|
7
7
|
* @category Asset
|
|
8
8
|
*/
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ContentType, ContentTypeCollection } from './content-type.js';
|
|
2
|
-
import { Space } from './space.js';
|
|
3
|
-
import { LocaleCode, LocaleCollection } from './locale.js';
|
|
4
|
-
import { AssetQueries, AssetsQueries, ConceptSchemesQueries, ConceptsQueries, EntriesQueries, EntryQueries, EntrySkeletonType, TagQueries } from './query/index.js';
|
|
5
|
-
import { SyncCollection, SyncOptions, SyncQuery } from './sync.js';
|
|
6
|
-
import { Tag, TagCollection } from './tag.js';
|
|
7
|
-
import { AssetKey } from './asset-key.js';
|
|
8
|
-
import { Entry, EntryCollection } from './entry.js';
|
|
9
|
-
import { Asset, AssetCollection, AssetFields } from './asset.js';
|
|
10
|
-
import { Concept, ConceptCollection } from './concept.js';
|
|
11
|
-
import { ConceptScheme, ConceptSchemeCollection } from './concept-scheme.js';
|
|
1
|
+
import type { ContentType, ContentTypeCollection } from './content-type.js';
|
|
2
|
+
import type { Space } from './space.js';
|
|
3
|
+
import type { LocaleCode, LocaleCollection } from './locale.js';
|
|
4
|
+
import type { AssetQueries, AssetsQueries, ConceptSchemesQueries, ConceptsQueries, EntriesQueries, EntryQueries, EntrySkeletonType, TagQueries } from './query/index.js';
|
|
5
|
+
import type { SyncCollection, SyncOptions, SyncQuery } from './sync.js';
|
|
6
|
+
import type { Tag, TagCollection } from './tag.js';
|
|
7
|
+
import type { AssetKey } from './asset-key.js';
|
|
8
|
+
import type { Entry, EntryCollection } from './entry.js';
|
|
9
|
+
import type { Asset, AssetCollection, AssetFields } from './asset.js';
|
|
10
|
+
import type { Concept, ConceptCollection } from './concept.js';
|
|
11
|
+
import type { ConceptScheme, ConceptSchemeCollection } from './concept-scheme.js';
|
|
12
12
|
/**
|
|
13
13
|
* Client chain modifiers used in all types that depend on the client configuration.
|
|
14
14
|
* @category Client
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AssetSys } from './asset.js';
|
|
2
|
-
import { EntrySys } from './entry.js';
|
|
1
|
+
import type { AssetSys } from './asset.js';
|
|
2
|
+
import type { EntrySys } from './entry.js';
|
|
3
3
|
/**
|
|
4
4
|
* A wrapper object containing additional information for
|
|
5
5
|
* a collection of Contentful resources
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ContentfulCollection } from './collection.js';
|
|
2
|
-
import { EntryFields } from './entry.js';
|
|
3
|
-
import { SpaceLink, EnvironmentLink } from './link.js';
|
|
4
|
-
import { BaseSys } from './sys.js';
|
|
1
|
+
import type { ContentfulCollection } from './collection.js';
|
|
2
|
+
import type { EntryFields } from './entry.js';
|
|
3
|
+
import type { SpaceLink, EnvironmentLink } from './link.js';
|
|
4
|
+
import type { BaseSys } from './sys.js';
|
|
5
5
|
import type { BLOCKS, INLINES } from '@contentful/rich-text-types';
|
|
6
6
|
/**
|
|
7
7
|
* System managed metadata for content type
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Document as RichTextDocument } from '@contentful/rich-text-types';
|
|
2
|
-
import { Asset } from './asset.js';
|
|
3
|
-
import { ContentfulCollection } from './collection.js';
|
|
4
|
-
import { ContentTypeLink, UnresolvedLink } from './link.js';
|
|
5
|
-
import { LocaleCode } from './locale.js';
|
|
6
|
-
import { Metadata } from './metadata.js';
|
|
7
|
-
import { EntrySkeletonType } from './query/index.js';
|
|
8
|
-
import { EntitySys } from './sys.js';
|
|
9
|
-
import { JsonArray, JsonObject } from 'type-fest';
|
|
10
|
-
import { ResourceLink } from './resource-link.js';
|
|
11
|
-
import { ChainModifiers } from './client.js';
|
|
1
|
+
import type { Document as RichTextDocument } from '@contentful/rich-text-types';
|
|
2
|
+
import type { Asset } from './asset.js';
|
|
3
|
+
import type { ContentfulCollection } from './collection.js';
|
|
4
|
+
import type { ContentTypeLink, UnresolvedLink } from './link.js';
|
|
5
|
+
import type { LocaleCode } from './locale.js';
|
|
6
|
+
import type { Metadata } from './metadata.js';
|
|
7
|
+
import type { EntrySkeletonType } from './query/index.js';
|
|
8
|
+
import type { EntitySys } from './sys.js';
|
|
9
|
+
import type { JsonArray, JsonObject } from 'type-fest';
|
|
10
|
+
import type { ResourceLink } from './resource-link.js';
|
|
11
|
+
import type { ChainModifiers } from './client.js';
|
|
12
12
|
/**
|
|
13
13
|
* System managed metadata for entries
|
|
14
14
|
* @category Entry
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EntryFields, EntryFieldType, EntryFieldTypes } from '../entry.js';
|
|
2
|
-
import { ConditionalQueries, EntryFieldsConditionalQueries, EntrySkeletonType } from './util.js';
|
|
1
|
+
import type { EntryFields, EntryFieldType, EntryFieldTypes } from '../entry.js';
|
|
2
|
+
import type { ConditionalQueries, EntryFieldsConditionalQueries, EntrySkeletonType } from './util.js';
|
|
3
3
|
type SupportedTypes = EntryFields.Symbol | EntryFields.Symbol[] | EntryFields.Text | EntryFields.Integer | EntryFields.Number | EntryFields.Date | EntryFields.Boolean | undefined;
|
|
4
4
|
type SupportedEntryFieldTypes = EntryFieldTypes.Symbol | EntryFieldTypes.Array<EntryFieldTypes.Symbol> | EntryFieldTypes.Text | EntryFieldTypes.Integer | EntryFieldTypes.Number | EntryFieldTypes.Date | EntryFieldTypes.Boolean | undefined;
|
|
5
5
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EntryField, EntryFieldType } from '../entry.js';
|
|
2
|
-
import { ConditionalFixedQueries, FieldsType, EntrySkeletonType } from './util.js';
|
|
3
|
-
import { AssetDetails, AssetFile } from '../asset.js';
|
|
1
|
+
import type { EntryField, EntryFieldType } from '../entry.js';
|
|
2
|
+
import type { ConditionalFixedQueries, FieldsType, EntrySkeletonType } from './util.js';
|
|
3
|
+
import type { AssetDetails, AssetFile } from '../asset.js';
|
|
4
4
|
/**
|
|
5
5
|
* Check for existence of provided fields
|
|
6
6
|
* @see {@link https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters/existence | Documentation}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ConditionalPick } from 'type-fest';
|
|
2
|
-
import { EntryFieldTypes } from '../entry.js';
|
|
1
|
+
import type { ConditionalPick } from 'type-fest';
|
|
2
|
+
import type { EntryFieldTypes } from '../entry.js';
|
|
3
3
|
type Types = EntryFieldTypes.Location | undefined;
|
|
4
4
|
export type ProximitySearchFilterInput = [number, number];
|
|
5
5
|
export type BoundingBoxSearchFilterInput = [number, number, number, number];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { EntrySkeletonType, FieldsType } from './util.js';
|
|
2
|
-
import { EntryFields, EntryFieldType, EntryFieldTypes, EntrySys } from '../entry.js';
|
|
3
|
-
import { AssetSys } from '../asset.js';
|
|
4
|
-
import { ConditionalPick } from 'type-fest';
|
|
5
|
-
import { TagSys } from '../tag.js';
|
|
1
|
+
import type { EntrySkeletonType, FieldsType } from './util.js';
|
|
2
|
+
import type { EntryFields, EntryFieldType, EntryFieldTypes, EntrySys } from '../entry.js';
|
|
3
|
+
import type { AssetSys } from '../asset.js';
|
|
4
|
+
import type { ConditionalPick } from 'type-fest';
|
|
5
|
+
import type { TagSys } from '../tag.js';
|
|
6
6
|
export type SupportedTypes = EntryFields.Symbol | EntryFields.Integer | EntryFields.Number | EntryFields.Date | EntryFields.Boolean | EntryFields.Location | undefined;
|
|
7
7
|
export type SupportedEntryFieldTypes = EntryFieldTypes.Symbol | EntryFieldTypes.Integer | EntryFieldTypes.Number | EntryFieldTypes.Date | EntryFieldTypes.Boolean | EntryFieldTypes.Location | undefined;
|
|
8
8
|
export type SupportedLinkTypes = EntryFieldTypes.AssetLink | EntryFieldTypes.EntryLink<any> | undefined;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { AssetDetails, AssetFile, AssetMimeType, AssetSys } from '../asset.js';
|
|
2
|
-
import { ChainModifiers } from '../client.js';
|
|
3
|
-
import { EntrySys } from '../entry.js';
|
|
4
|
-
import { TagLink, TaxonomyConceptLink } from '../link.js';
|
|
5
|
-
import { Metadata } from '../metadata.js';
|
|
6
|
-
import { TagSys } from '../tag.js';
|
|
7
|
-
import { EntryFieldsEqualityFilter, EntryFieldsInequalityFilter, EqualityFilter, InequalityFilter } from './equality.js';
|
|
8
|
-
import { EntryFieldsExistenceFilter, ExistenceFilter } from './existence.js';
|
|
9
|
-
import { LocationSearchFilters } from './location.js';
|
|
10
|
-
import { AssetOrderFilter, TaxonomyOrderFilter, EntryOrderFilter, EntryOrderFilterWithFields, TagOrderFilter } from './order.js';
|
|
11
|
-
import { EntryFieldsRangeFilters, RangeFilters } from './range.js';
|
|
12
|
-
import { ReferenceSearchFilters } from './reference.js';
|
|
13
|
-
import { EntryFieldsFullTextSearchFilters, FullTextSearchFilters } from './search.js';
|
|
14
|
-
import { AssetSelectFilter, EntrySelectFilter, EntrySelectFilterWithFields } from './select.js';
|
|
15
|
-
import { EntryFieldsSetFilter } from './set.js';
|
|
16
|
-
import { EntryFieldsSubsetFilters, SubsetFilters } from './subset.js';
|
|
17
|
-
import { ConditionalFixedQueries, ConditionalListQueries, EntrySkeletonType, FieldsType } from './util.js';
|
|
1
|
+
import type { AssetDetails, AssetFile, AssetMimeType, AssetSys } from '../asset.js';
|
|
2
|
+
import type { ChainModifiers } from '../client.js';
|
|
3
|
+
import type { EntrySys } from '../entry.js';
|
|
4
|
+
import type { TagLink, TaxonomyConceptLink } from '../link.js';
|
|
5
|
+
import type { Metadata } from '../metadata.js';
|
|
6
|
+
import type { TagSys } from '../tag.js';
|
|
7
|
+
import type { EntryFieldsEqualityFilter, EntryFieldsInequalityFilter, EqualityFilter, InequalityFilter } from './equality.js';
|
|
8
|
+
import type { EntryFieldsExistenceFilter, ExistenceFilter } from './existence.js';
|
|
9
|
+
import type { LocationSearchFilters } from './location.js';
|
|
10
|
+
import type { AssetOrderFilter, TaxonomyOrderFilter, EntryOrderFilter, EntryOrderFilterWithFields, TagOrderFilter } from './order.js';
|
|
11
|
+
import type { EntryFieldsRangeFilters, RangeFilters } from './range.js';
|
|
12
|
+
import type { ReferenceSearchFilters } from './reference.js';
|
|
13
|
+
import type { EntryFieldsFullTextSearchFilters, FullTextSearchFilters } from './search.js';
|
|
14
|
+
import type { AssetSelectFilter, EntrySelectFilter, EntrySelectFilterWithFields } from './select.js';
|
|
15
|
+
import type { EntryFieldsSetFilter } from './set.js';
|
|
16
|
+
import type { EntryFieldsSubsetFilters, SubsetFilters } from './subset.js';
|
|
17
|
+
import type { ConditionalFixedQueries, ConditionalListQueries, EntrySkeletonType, FieldsType } from './util.js';
|
|
18
18
|
export type FixedPagedOptions = {
|
|
19
19
|
skip?: number;
|
|
20
20
|
limit?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EntryFields, EntryFieldType, EntryFieldTypes } from '../entry.js';
|
|
2
|
-
import { ConditionalQueries, EntryFieldsConditionalQueries, EntrySkeletonType } from './util.js';
|
|
1
|
+
import type { EntryFields, EntryFieldType, EntryFieldTypes } from '../entry.js';
|
|
2
|
+
import type { ConditionalQueries, EntryFieldsConditionalQueries, EntrySkeletonType } from './util.js';
|
|
3
3
|
type RangeFilterTypes = 'lt' | 'lte' | 'gt' | 'gte';
|
|
4
4
|
type SupportedTypes = EntryFields.Date | EntryFields.Number | EntryFields.Integer | undefined;
|
|
5
5
|
type SupportedEntryFieldTypes = EntryFieldTypes.Date | EntryFieldTypes.Number | EntryFieldTypes.Integer | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EntryFieldTypes } from '../entry.js';
|
|
2
|
-
import { ConditionalPick } from 'type-fest';
|
|
1
|
+
import type { EntryFieldTypes } from '../entry.js';
|
|
2
|
+
import type { ConditionalPick } from 'type-fest';
|
|
3
3
|
type SupportedTypes = EntryFieldTypes.Array<EntryFieldTypes.EntryLink<any>> | EntryFieldTypes.EntryLink<any> | undefined;
|
|
4
4
|
/**
|
|
5
5
|
* Search on references in provided fields
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EntryFields, EntryFieldTypes } from '../entry.js';
|
|
2
|
-
import { ConditionalFixedQueries, FieldsType } from './util.js';
|
|
1
|
+
import type { EntryFields, EntryFieldTypes } from '../entry.js';
|
|
2
|
+
import type { ConditionalFixedQueries, FieldsType } from './util.js';
|
|
3
3
|
type SupportedTypes = EntryFields.Text | EntryFields.RichText | EntryFields.Symbol | EntryFields.Symbol[] | undefined;
|
|
4
4
|
type SupportedEntryFieldTypes = EntryFieldTypes.Text | EntryFieldTypes.RichText | EntryFieldTypes.Symbol | EntryFieldTypes.Array<EntryFieldTypes.Symbol> | undefined;
|
|
5
5
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { FieldsType } from './util.js';
|
|
2
|
-
import { EntrySys } from '../entry.js';
|
|
3
|
-
import { AssetSys } from '../asset.js';
|
|
4
|
-
import { Metadata } from '../metadata.js';
|
|
1
|
+
import type { FieldsType } from './util.js';
|
|
2
|
+
import type { EntrySys } from '../entry.js';
|
|
3
|
+
import type { AssetSys } from '../asset.js';
|
|
4
|
+
import type { Metadata } from '../metadata.js';
|
|
5
5
|
export type SelectFilterPaths<Fields extends FieldsType, Prefix extends string> = `${Prefix}.${keyof Fields & string}`;
|
|
6
6
|
/**
|
|
7
7
|
* Select fields from provided fields in an entry
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EntryFieldType, EntryFieldTypes } from '../index.js';
|
|
2
|
-
import { EntryFieldsConditionalListQueries } from './util.js';
|
|
1
|
+
import type { EntryFieldType, EntryFieldTypes } from '../index.js';
|
|
2
|
+
import type { EntryFieldsConditionalListQueries } from './util.js';
|
|
3
3
|
type SupportedTypes = EntryFieldTypes.Symbol | EntryFieldTypes.Array<EntryFieldTypes.Symbol> | EntryFieldTypes.Text | undefined;
|
|
4
4
|
/**
|
|
5
5
|
* Match multiple values in provided fields of an entry
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EntryFields, EntryFieldType, EntryFieldTypes } from '../index.js';
|
|
2
|
-
import { ConditionalListQueries, EntryFieldsConditionalListQueries } from './util.js';
|
|
1
|
+
import type { EntryFields, EntryFieldType, EntryFieldTypes } from '../index.js';
|
|
2
|
+
import type { ConditionalListQueries, EntryFieldsConditionalListQueries } from './util.js';
|
|
3
3
|
type SubsetFilterTypes = 'in' | 'nin';
|
|
4
4
|
type SupportedTypes = EntryFields.Symbol | EntryFields.Symbol[] | EntryFields.Text | EntryFields.Integer | EntryFields.Number | EntryFields.Date | EntryFields.Boolean | undefined;
|
|
5
5
|
type SupportedEntryFieldTypes = EntryFieldTypes.Symbol | EntryFieldTypes.Array<EntryFieldTypes.Symbol> | EntryFieldTypes.Text | EntryFieldTypes.Integer | EntryFieldTypes.Number | EntryFieldTypes.Date | EntryFieldTypes.Boolean | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ConditionalPick } from 'type-fest';
|
|
2
|
-
import { BaseFieldMap, EntryFieldType, EntryFieldTypes } from '../entry.js';
|
|
1
|
+
import type { ConditionalPick } from 'type-fest';
|
|
2
|
+
import type { BaseFieldMap, EntryFieldType, EntryFieldTypes } from '../entry.js';
|
|
3
3
|
/**
|
|
4
4
|
* @category Entity
|
|
5
5
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { Asset } from './asset.js';
|
|
2
|
-
import { Entry } from './entry.js';
|
|
3
|
-
import { EntitySys } from './sys.js';
|
|
4
|
-
import { EntrySkeletonType } from './query/index.js';
|
|
5
|
-
import { LocaleCode } from './locale.js';
|
|
6
|
-
import { ChainModifiers } from './client.js';
|
|
1
|
+
import type { Asset } from './asset.js';
|
|
2
|
+
import type { Entry } from './entry.js';
|
|
3
|
+
import type { EntitySys } from './sys.js';
|
|
4
|
+
import type { EntrySkeletonType } from './query/index.js';
|
|
5
|
+
import type { LocaleCode } from './locale.js';
|
|
6
|
+
import type { ChainModifiers } from './client.js';
|
|
7
7
|
/**
|
|
8
8
|
* @category Sync
|
|
9
9
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ContentSourceMapsLookup, CPAContentSourceMaps } from '@contentful/content-source-maps';
|
|
2
|
-
import { EntryFields } from './entry.js';
|
|
3
|
-
import { EnvironmentLink, SpaceLink } from './link.js';
|
|
1
|
+
import type { ContentSourceMapsLookup, CPAContentSourceMaps } from '@contentful/content-source-maps';
|
|
2
|
+
import type { EntryFields } from './entry.js';
|
|
3
|
+
import type { EnvironmentLink, SpaceLink } from './link.js';
|
|
4
4
|
/**
|
|
5
5
|
* Definition of common part of system managed metadata
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EntitySys } from './sys.js';
|
|
2
|
-
import { ContentfulCollection } from './collection.js';
|
|
3
|
-
import { UserLink } from './link.js';
|
|
1
|
+
import type { EntitySys } from './sys.js';
|
|
2
|
+
import type { ContentfulCollection } from './collection.js';
|
|
3
|
+
import type { UserLink } from './link.js';
|
|
4
4
|
/**
|
|
5
5
|
* System managed metadata for tags
|
|
6
6
|
* @category Tag
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChainModifiers } from '../types/client.js';
|
|
1
|
+
import type { ChainModifiers } from '../types/client.js';
|
|
2
2
|
export type ChainOption<Modifiers extends ChainModifiers = ChainModifiers> = {
|
|
3
3
|
withoutLinkResolution: ChainModifiers extends Modifiers ? boolean : 'WITHOUT_LINK_RESOLUTION' extends Modifiers ? true : false;
|
|
4
4
|
withAllLocales: ChainModifiers extends Modifiers ? boolean : 'WITH_ALL_LOCALES' extends Modifiers ? true : false;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentful",
|
|
3
3
|
"description": "Client for Contentful's Content Delivery API",
|
|
4
|
-
"version": "11.4.
|
|
4
|
+
"version": "11.4.6",
|
|
5
5
|
"homepage": "https://www.contentful.com/developers/documentation/content-delivery-api/",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"docs:build": "typedoc --options typedoc.json",
|
|
63
63
|
"docs:watch": "npm run docs:build -- --watch",
|
|
64
64
|
"docs:publish": "npm run docs:build && ./node_modules/contentful-sdk-jsdoc/bin/publish-docs.sh contentful.js contentful",
|
|
65
|
-
"lint": "eslint
|
|
65
|
+
"lint": "eslint lib test",
|
|
66
66
|
"prettier": "prettier --write '**/*.{jsx,js,ts,tsx}'",
|
|
67
67
|
"prettier:check": "prettier --check '**/*.{jsx,js,ts,tsx}'",
|
|
68
68
|
"pretest": "rimraf coverage",
|
|
@@ -96,6 +96,7 @@
|
|
|
96
96
|
"devDependencies": {
|
|
97
97
|
"@babel/plugin-transform-runtime": "^7.24.7",
|
|
98
98
|
"@babel/preset-env": "^7.24.3",
|
|
99
|
+
"@eslint/js": "^9.15.0",
|
|
99
100
|
"@optimize-lodash/rollup-plugin": "^4.0.4",
|
|
100
101
|
"@rollup/plugin-alias": "^5.1.0",
|
|
101
102
|
"@rollup/plugin-babel": "^6.0.4",
|
|
@@ -107,21 +108,13 @@
|
|
|
107
108
|
"@semantic-release/changelog": "^6.0.1",
|
|
108
109
|
"@size-limit/file": "^11.1.6",
|
|
109
110
|
"@types/json-stringify-safe": "^5.0.0",
|
|
110
|
-
"@typescript-eslint/eslint-plugin": "^7.3.1",
|
|
111
|
-
"@typescript-eslint/parser": "^7.3.1",
|
|
112
111
|
"contentful-sdk-jsdoc": "^3.1.2",
|
|
113
112
|
"cz-conventional-changelog": "^3.3.0",
|
|
114
113
|
"es-check": "^7.0.0",
|
|
115
|
-
"eslint": "^
|
|
116
|
-
"eslint-config-prettier": "^9.0.0",
|
|
117
|
-
"eslint-config-standard": "^17.1.0",
|
|
118
|
-
"eslint-plugin-import": "^2.9.0",
|
|
119
|
-
"eslint-plugin-node": "^11.1.0",
|
|
120
|
-
"eslint-plugin-promise": "^6.1.1",
|
|
121
|
-
"eslint-plugin-standard": "^5.0.0",
|
|
122
|
-
"eslint-plugin-vitest-globals": "^1.5.0",
|
|
114
|
+
"eslint": "^9.15.0",
|
|
123
115
|
"fast-copy": "^3.0.2",
|
|
124
116
|
"husky": "^9.0.11",
|
|
117
|
+
"lint-staged": "^15.2.10",
|
|
125
118
|
"prettier": "^3.1.0",
|
|
126
119
|
"process": "^0.11.10",
|
|
127
120
|
"rimraf": "^5.0.0",
|
|
@@ -131,7 +124,8 @@
|
|
|
131
124
|
"size-limit": "^11.1.6",
|
|
132
125
|
"tsd": "^0.31.0",
|
|
133
126
|
"typedoc": "^0.26.4",
|
|
134
|
-
"typescript": "^5.
|
|
127
|
+
"typescript": "^5.6.3",
|
|
128
|
+
"typescript-eslint": "^8.16.0",
|
|
135
129
|
"vitest": "^2.0.2"
|
|
136
130
|
},
|
|
137
131
|
"config": {
|
|
@@ -139,6 +133,15 @@
|
|
|
139
133
|
"path": "./node_modules/cz-conventional-changelog"
|
|
140
134
|
}
|
|
141
135
|
},
|
|
136
|
+
"lint-staged": {
|
|
137
|
+
"*.{js,jsx,ts,tsx}": [
|
|
138
|
+
"prettier --write",
|
|
139
|
+
"eslint"
|
|
140
|
+
],
|
|
141
|
+
"*.md": [
|
|
142
|
+
"prettier --write"
|
|
143
|
+
]
|
|
144
|
+
},
|
|
142
145
|
"size-limit": [
|
|
143
146
|
{
|
|
144
147
|
"path": "./dist/contentful.browser.js",
|