1 | import { CollectionProp, DefaultElements, EntityMetaSysProps, KeyValueMap, MakeRequest, MetadataProps } from '../common-types';
|
2 | import { ContentfulEntryApi } from '../create-entry-api';
|
3 | import { AssetProps } from './asset';
|
4 | export declare type EntryProps<T = KeyValueMap> = {
|
5 | sys: EntityMetaSysProps;
|
6 | metadata?: MetadataProps;
|
7 | fields: T;
|
8 | };
|
9 | export declare type CreateEntryProps<TFields = KeyValueMap> = Omit<EntryProps<TFields>, 'sys'>;
|
10 | export interface EntryReferenceProps extends CollectionProp<EntryProps> {
|
11 | includes?: {
|
12 | Entry?: EntryProps[];
|
13 | Asset?: AssetProps[];
|
14 | };
|
15 | }
|
16 | export declare type EntryReferenceOptionsProps = {
|
17 | |
18 |
|
19 |
|
20 | maxDepth?: number;
|
21 | include?: number;
|
22 | };
|
23 | export interface Entry extends EntryProps, DefaultElements<EntryProps>, ContentfulEntryApi {
|
24 | }
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 | export declare function wrapEntry(makeRequest: MakeRequest, data: EntryProps): Entry;
|
32 |
|
33 |
|
34 |
|
35 |
|
36 | export declare const wrapEntryCollection: (makeRequest: MakeRequest, data: CollectionProp<EntryProps<KeyValueMap>>) => import("../common-types").Collection<Entry, EntryProps<KeyValueMap>>;
|