Interface ContentfulEnvironmentAPI
Methods
createAsset
-
Parameters
Returns Promise<Asset>
createAssetFromFiles
-
Parameters
Returns Promise<Asset>
createAssetWithId
-
Parameters
Returns Promise<Asset>
createEntry
-
Parameters
Returns Promise<Entry>
createEntryWithId
- createEntryWithId(contentTypeId: string, id: string, data: EntryProp): Promise<Entry>
-
Parameters
-
contentTypeId: string
-
id: string
-
Returns Promise<Entry>
createLocale
-
Parameters
Returns Promise<Locale>
createUpload
- createUpload(data: { file: string | ArrayBuffer | Stream }): Promise<Upload>
-
Parameters
-
data: { file: string | ArrayBuffer | Stream }
-
file: string | ArrayBuffer | Stream
Returns Promise<Upload>
getAsset
- getAsset(id: string, query?: Record<string, any>): Promise<Asset>
-
Parameters
-
id: string
-
Optional query: Record<string, any>
Returns Promise<Asset>
getAssets
-
Parameters
-
Optional query: Record<string, any>
getEditorInterfaceForContentType
- getEditorInterfaceForContentType(contentTypeId: string): Promise<EditorInterface>
getEntry
- getEntry(id: string): Promise<Entry>
-
Parameters
Returns Promise<Entry>
getLocale
- getLocale(id: string): Promise<Locale>
-
Parameters
Returns Promise<Locale>
getUpload
- getUpload(id: string): Promise<Upload>
-
Parameters
Returns Promise<Upload>