Type aliases
ActionType
ActionType: "read" | "create" | "update" | "delete" | "publish" | "unpublish" | "archive" | "unarchive"
AdapterParams
Adapter
Params: { apiAdapter: Adapter }
ApiKeyProps
Api
KeyProps: { accessToken: string; description?: undefined | string; environments: { sys: MetaLinkProps }[]; name: string; policies?: { action: string; effect: string }[]; preview_api_key: { sys: MetaLinkProps }; sys: MetaSysProps }
Type declaration
-
accessToken: string
-
Optional description?: undefined | string
-
-
name: string
-
Optional policies?: { action: string; effect: string }[]
-
-
AppBundleFile
AppBundleFile: { md5: string; name: string; size: number }
Type declaration
-
md5: string
-
name: string
-
size: number
AppBundleProps
Type declaration
-
Optional comment?: undefined | string
-
-
AppDefinitionProps
Type declaration
-
Optional bundle?: Link<"AppBundle">
-
Optional locations?: AppLocation[]
-
name: string
-
Optional parameters?: undefined | { instance?: ParameterDefinition[] }
-
Optional src?: undefined | string
-
AppSignedRequestProps
App
SignedRequestProps: { additionalHeaders: { x-contentful-environment-id: string; x-contentful-signature: string; x-contentful-signed-headers: string; x-contentful-space-id: string; x-contentful-timestamp: string; x-contentful-user-id: string }; sys: AppSignedRequestSys }
Type declaration
-
additionalHeaders: { x-contentful-environment-id: string; x-contentful-signature: string; x-contentful-signed-headers: string; x-contentful-space-id: string; x-contentful-timestamp: string; x-contentful-user-id: string }
-
x-contentful-environment-id: string
-
x-contentful-signature: string
-
x-contentful-signed-headers: string
-
x-contentful-space-id: string
-
x-contentful-timestamp: string
-
x-contentful-user-id: string
-
AssetApi
AssetApi: { archive: any; delete: any; isArchived: any; isDraft: any; isPublished: any; isUpdated: any; processForAllLocales: any; processForLocale: any; publish: any; unarchive: any; unpublish: any; update: any }
Type declaration
-
archive: function
- archive(): Promise<Asset>
-
delete: function
-
isArchived: function
-
isDraft: function
-
isPublished: function
-
isUpdated: function
-
processForAllLocales: function
-
processForLocale: function
-
publish: function
- publish(): Promise<Asset>
-
unarchive: function
- unarchive(): Promise<Asset>
-
unpublish: function
- unpublish(): Promise<Asset>
-
update: function
AssetKeyProps
AssetKeyProps: { policy: string; secret: string }
Type declaration
-
policy: string
-
secret: string
AssetProps
Type declaration
-
fields: { description?: undefined | {}; file: {}; title: {} }
-
Optional description?: undefined | {}
-
file: {}
-
[key: string]: { contentType: string; details?: Record<string, any>; fileName: string; upload?: undefined | string; uploadFrom?: Record<string, any>; url?: undefined | string }
-
contentType: string
-
Optional details?: Record<string, any>
-
fileName: string
-
Optional upload?: undefined | string
-
Optional uploadFrom?: Record<string, any>
-
Optional url?: undefined | string
-
title: {}
-
-
AsyncActionProcessingOptions
AsyncActionProcessingOptions: { initialDelayMs?: undefined | number; retryCount?: undefined | number; retryIntervalMs?: undefined | number; throwOnFailedExecution?: undefined | false | true }
Type declaration
-
Optional initialDelayMs?: undefined | number
-
Optional retryCount?: undefined | number
-
Optional retryIntervalMs?: undefined | number
-
Optional throwOnFailedExecution?: undefined | false | true
BulkActionStatuses
BulkActionStatuses: typeof STATUSES[number]
BulkActionSysProps
Type declaration
-
-
createdBy: Link<"User">
-
environment: Link<"Environment">
-
id: string
-
space: Link<"Space">
-
-
type: "BulkAction"
-
BulkActionType
BulkActionType: "publish" | "unpublish" | "validate"
ClientAPI
ClientAPI: ReturnType<typeof createClientApi>
Collection
Collection<T, T, TPlain>: Array<T>
Type parameters
sys
sys: { type: "Array" }
ConditionType
ConditionType: "and" | "or" | "not" | "equals"
ConstraintType
ConstraintType: {}
ContentTypeApi
ContentTypeApi: { delete: any; getEditorInterface: any; getSnapshot: any; getSnapshots: any; isDraft: any; isPublished: any; isUpdated: any; omitAndDeleteField: any; publish: any; unpublish: any; update: any }
Type declaration
-
delete: function
-
getEditorInterface: function
-
getSnapshot: function
-
getSnapshots: function
-
isDraft: function
-
isPublished: function
-
isUpdated: function
-
omitAndDeleteField: function
-
publish: function
-
unpublish: function
-
update: function
ContentTypeProps
Content
TypeProps: { description: string; displayField: string; fields: ContentFields[]; name: string; sys: BasicMetaSysProps & { environment: SysLink; firstPublishedAt?: undefined | string; publishedCounter?: undefined | number; publishedVersion?: undefined | number; space: SysLink } }
Type declaration
-
description: string
-
displayField: string
-
-
name: string
-
sys: BasicMetaSysProps & { environment: SysLink; firstPublishedAt?: undefined | string; publishedCounter?: undefined | number; publishedVersion?: undefined | number; space: SysLink }
CreateApiKeyProps
Create
ApiKeyProps: Pick<ApiKeyProps, "name" | "environments" | "description">
CreateAppBundleProps
CreateAppBundleProps: { appUploadId: string; comment?: undefined | string }
Type declaration
-
appUploadId: string
-
Optional comment?: undefined | string
CreateAppDefinitionProps
Create
AppDefinitionProps: SetOptional<Except<AppDefinitionProps, "sys" | "bundle">, "src" | "locations">
CreateAppDetailsProps
Create
AppDetailsProps: { icon?: AppIcon }
CreateAppInstallationProps
CreateAppSignedRequestProps
CreateAppSignedRequestProps: { body?: undefined | string; headers?: Record<string, string>; method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH" | "HEAD"; path: string }
Type declaration
-
Optional body?: undefined | string
-
Optional headers?: Record<string, string>
-
method: "GET" | "PUT" | "POST" | "DELETE" | "PATCH" | "HEAD"
-
path: string
CreateAppSigningSecretProps
CreateAppSigningSecretProps: { value: string }
CreateAssetKeyProps
CreateAssetKeyProps: { expiresAt: number }
CreateContentTypeProps
Create
ContentTypeProps: SetOptional<Except<ContentTypeProps, "sys">, "description" | "displayField">
CreateEntryProps
Create
EntryProps<TFields>: Omit<EntryProps<TFields>, "sys">
Type parameters
CreateEnvironmentAliasProps
CreateExtensionProps
CreateExtensionProps: { extension: RequireExactlyOne<SetRequired<ExtensionProps["extension"], "name" | "fieldTypes" | "sidebar">, "src" | "srcdoc"> }
Type declaration
-
extension: RequireExactlyOne<SetRequired<ExtensionProps["extension"], "name" | "fieldTypes" | "sidebar">, "src" | "srcdoc">
CreateLocaleProps
Create
LocaleProps: Omit<SetOptional<Except<LocaleProps, "sys">, "optional" | "contentManagementApi" | "default" | "contentDeliveryApi">, "internal_code">
CreateOrganizationInvitationProps
CreatePersonalAccessTokenProps
CreateSpaceMembershipProps
CreateTeamMembershipProps
CreateTeamSpaceMembershipProps
CreateUpdateScheduledActionProps
Create
UpdateScheduledActionProps: Pick<ScheduledActionProps, "action" | "entity" | "environment" | "scheduledFor">
CreateWebhooksProps
Create
WebhooksProps: SetOptional<Except<WebhookProps, "sys">, "headers">
DefaultParams
DefaultParams: { environmentId?: undefined | string; organizationId?: undefined | string; spaceId?: undefined | string }
Type declaration
-
Optional environmentId?: undefined | string
-
Optional organizationId?: undefined | string
-
Optional spaceId?: undefined | string
DefinedParameters
DefinedParameters: Record<string, string | number | boolean>
Entity
Entity: "Entry" | "Asset"
EntryProps
Type parameters
EntryReferenceOptionsProps
EntryReferenceOptionsProps: { maxDepth?: undefined | number }
Type declaration
-
Optional maxDepth?: undefined | number
ErrorDetail
ErrorDetail: { error: any }
ExtensionProps
Type declaration
-
extension: { fieldTypes: FieldType[]; name: string; parameters?: undefined | { installation?: ParameterDefinition[]; instance?: ParameterDefinition[] }; sidebar?: undefined | false | true; src?: undefined | string; srcdoc?: undefined | string }
-
-
name: string
-
-
Optional sidebar?: undefined | false | true
-
Optional src?: undefined | string
-
Optional srcdoc?: undefined | string
-
-
FieldType
FieldType: { type: "Symbol" } | { type: "Text" } | { type: "RichText" } | { type: "Integer" } | { type: "Number" } | { type: "Date" } | { type: "Boolean" } | { type: "Object" } | { type: "Location" } | { linkType: "Asset"; type: "Link" } | { linkType: "Entry"; type: "Link" } | { items: { type: "Symbol" }; type: "Array" } | { items: { linkType: "Entry"; type: "Link" }; type: "Array" } | { items: { linkType: "Asset"; type: "Link" }; type: "Array" }
FreeFormParameters
FreeFormParameters: Record<string, any> | Array<any> | number | string | boolean
GetOrganizationMembershipProps
GetOrganizationParams
GetOrganizationParams: { organizationId: string }
GetSnapshotForContentTypeParams
GetSnapshotForEntryParams
GetSpaceEnvAliasParams
Get
SpaceEnvAliasParams: GetSpaceParams & { environmentAliasId: string }
GetSpaceEnvironmentParams
GetSpaceEnvironmentParams: { environmentId: string; spaceId: string }
Type declaration
-
environmentId: string
-
spaceId: string
GetSpaceMembershipProps
Get
SpaceMembershipProps: GetSpaceParams & { spaceMembershipId: string }
GetSpaceParams
GetSpaceParams: { spaceId: string }
GetTeamMembershipParams
Get
TeamMembershipParams: GetTeamParams & { teamMembershipId: string }
GetTeamParams
GetTeamParams: { organizationId: string; teamId: string }
Type declaration
-
organizationId: string
-
teamId: string
GetTeamSpaceMembershipParams
Get
TeamSpaceMembershipParams: GetSpaceParams & { teamSpaceMembershipId: string }
ISO8601Timestamp
ISO8601Timestamp: string
IterableFn
Type parameters
KeyValueMap
KeyValueMap: Record<string, any>
LocaleProps
Locale
Props: { code: string; contentDeliveryApi: boolean; contentManagementApi: boolean; default: boolean; fallbackCode: string | null; internal_code: string; name: string; optional: boolean; sys: BasicMetaSysProps & { environment: SysLink; space: SysLink } }
Type declaration
-
code: string
-
contentDeliveryApi: boolean
-
contentManagementApi: boolean
-
default: boolean
-
fallbackCode: string | null
-
internal_code: string
-
name: string
-
optional: boolean
-
LocationType
LocationType: "app-config" | "entry-sidebar" | "entry-editor" | "dialog" | "page"
OmitOrDelete
OmitOrDelete: "omitted" | "deleted"
OrganizationInvitationProps
Organization
InvitationProps: { email: string; firstName: string; lastName: string; role: string; sys: MetaSysProps & { invitationUrl: string; organizationMembership: { sys: MetaLinkProps }; status: string; user: Record<string, any> | null } }
Type declaration
-
email: string
-
firstName: string
-
lastName: string
-
role: string
-
sys: MetaSysProps & { invitationUrl: string; organizationMembership: { sys: MetaLinkProps }; status: string; user: Record<string, any> | null }
OrganizationMembershipProps
Type declaration
-
role: string
-
status: boolean
-
ParameterOption
ParameterOption: string | {}
ParameterType
ParameterType: "Boolean" | "Symbol" | "Number" | "Enum"
ParamsType
ParamsType<T>: T extends (params: infer P) => any ? P : never
Type parameters
PersonalAccessTokenProp
Personal
AccessTokenProp: { name: string; revokedAt: null | string; scopes: "content_management_manage"[]; sys: MetaSysProps; token?: undefined | string }
Type declaration
-
name: string
-
revokedAt: null | string
-
scopes: "content_management_manage"[]
-
-
Optional token?: undefined | string
PlainClientAPI
PlainClientAPI: { apiKey: { create: any; createWithId: any; delete: any; get: any; getMany: any; update: any }; appBundle: { create: any; delete: any; get: any; getMany: any }; appDefinition: { create: any; delete: any; get: any; getMany: any; update: any }; appDetails: { delete: any; get: any; upsert: any }; appInstallation: { delete: any; get: any; getMany: any; upsert: any }; appSignedRequest: { create: any }; appSigningSecret: { delete: any; get: any; upsert: any }; appUpload: { create: any; delete: any; get: any }; asset: { archive: any; create: any; createFromFiles: any; createWithId: any; delete: any; get: any; getMany: any; processForAllLocales: any; processForLocale: any; publish: any; unarchive: any; unpublish: any; update: any }; assetKey: { create: any }; bulkAction: { get: any; publish: any; unpublish: any; validate: any }; contentType: { create: any; createWithId: any; delete: any; get: any; getMany: any; omitAndDeleteField: any; publish: any; unpublish: any; update: any }; editorInterface: { get: any; getMany: any; update: any }; entry: { archive: any; create: any; createWithId: any; delete: any; get: any; getMany: any; patch: any; publish: any; references: any; unarchive: any; unpublish: any; update: any }; environment: { create: any; createWithId: any; delete: any; get: any; getMany: any; update: any }; environmentAlias: { createWithId: any; delete: any; get: any; getMany: any; update: any }; extension: { create: any; createWithId: any; delete: any; get: any; getMany: any; update: any }; locale: { create: any; delete: any; get: any; getMany: any; update: any }; organization: { get: any; getAll: any }; organizationInvitation: { create: any; get: any }; organizationMembership: { delete: any; get: any; getMany: any; update: any }; personalAccessToken: { create: any; get: any; getMany: any; revoke: any }; previewApiKey: { get: any; getMany: any }; raw: { delete: any; get: any; getDefaultParams: any; http: any; patch: any; post: any; put: any }; release: { create: any; delete: any; get: any; publish: any; query: any; unpublish: any; update: any; validate: any }; releaseAction: { get: any; queryForRelease: any }; role: { create: any; createWithId: any; delete: any; get: any; getMany: any; update: any }; scheduledActions: { create: any; delete: any; get: any; getMany: any; update: any }; snapshot: { getForContentType: any; getForEntry: any; getManyForContentType: any; getManyForEntry: any }; space: { create: any; delete: any; get: any; getMany: any; update: any }; spaceMember: { get: any; getMany: any }; spaceMembership: { create: any; createWithId: any; delete: any; get: any; getForOrganization: any; getMany: any; getManyForOrganization: any; update: any }; tag: { createWithId: any; delete: any; get: any; getMany: any; update: any }; task: { create: any; delete: any; get: any; getAll: any; update: any }; team: { create: any; delete: any; get: any; getMany: any; getManyForSpace: any; update: any }; teamMembership: { create: any; delete: any; get: any; getManyForOrganization: any; getManyForTeam: any; update: any }; teamSpaceMembership: { create: any; delete: any; get: any; getForOrganization: any; getMany: any; getManyForOrganization: any; update: any }; upload: { create: any; delete: any; get: any }; usage: { getManyForOrganization: any; getManyForSpace: any }; user: { getCurrent: any; getForOrganization: any; getForSpace: any; getManyForOrganization: any; getManyForSpace: any }; webhook: { create: any; delete: any; get: any; getCallDetails: any; getHealthStatus: any; getMany: any; getManyCallDetails: any; update: any } }
Type declaration
-
apiKey: { create: any; createWithId: any; delete: any; get: any; getMany: any; update: any }
-
create: function
-
Parameters
-
-
-
Optional headers: Record<string, unknown>
-
createWithId: function
-
Parameters
-
params: OptionalDefaults<GetSpaceParams & { apiKeyId: string }>
-
-
Optional headers: Record<string, unknown>
-
delete: function
- delete(params: OptionalDefaults<GetSpaceParams & { apiKeyId: string }>): Promise<any>
-
Parameters
Returns Promise<any>
-
get: function
-
getMany: function
-
update: function
-
Parameters
-
params: OptionalDefaults<GetSpaceParams & { apiKeyId: string }>
-
-
Optional headers: Record<string, unknown>
-
appBundle: { create: any; delete: any; get: any; getMany: any }
-
create: function
-
delete: function
-
Parameters
Returns Promise<void>
-
get: function
-
getMany: function
-
appDefinition: { create: any; delete: any; get: any; getMany: any; update: any }
-
create: function
-
delete: function
-
Parameters
Returns Promise<any>
-
get: function
-
getMany: function
-
update: function
-
Parameters
-
-
-
Optional headers: Record<string, unknown>
-
appDetails: { delete: any; get: any; upsert: any }
-
delete: function
-
Parameters
Returns Promise<void>
-
get: function
-
upsert: function
-
appInstallation: { delete: any; get: any; getMany: any; upsert: any }
-
delete: function
-
Parameters
Returns Promise<any>
-
get: function
-
getMany: function
-
upsert: function
-
Parameters
-
-
-
Optional headers: Record<string, unknown>
-
appSignedRequest: { create: any }
-
appSigningSecret: { delete: any; get: any; upsert: any }
-
delete: function
-
Parameters
Returns Promise<void>
-
get: function
-
upsert: function
-
appUpload: { create: any; delete: any; get: any }
-
create: function
-
Parameters
-
-
payload: { file: string | ArrayBuffer | Stream }
-
file: string | ArrayBuffer | Stream
-
delete: function
-
Parameters
Returns Promise<void>
-
get: function
-
asset: { archive: any; create: any; createFromFiles: any; createWithId: any; delete: any; get: any; getMany: any; processForAllLocales: any; processForLocale: any; publish: any; unarchive: any; unpublish: any; update: any }
-
archive: function
-
create: function
-
createFromFiles: function
-
createWithId: function
-
delete: function
-
Parameters
Returns Promise<any>
-
get: function
-
Parameters
-
-
Optional rawData: unknown
-
Optional headers: Record<string, unknown>
-
getMany: function
-
processForAllLocales: function
-
processForLocale: function
-
publish: function
-
unarchive: function
-
unpublish: function
-
update: function
-
Parameters
-
-
-
Optional headers: Record<string, unknown>
-
assetKey: { create: any }
-
bulkAction: { get: any; publish: any; unpublish: any; validate: any }
-
get: function
-
Type parameters
Parameters
-
publish: function
-
unpublish: function
-
validate: function
-
contentType: { create: any; createWithId: any; delete: any; get: any; getMany: any; omitAndDeleteField: any; publish: any; unpublish: any; update: any }
-
create: function
-
createWithId: function
-
delete: function
-
Parameters
Returns Promise<any>
-
get: function
-
getMany: function
-
omitAndDeleteField: function
-
publish: function
-
unpublish: function
-
update: function
-
Parameters
-
-
-
Optional headers: Record<string, unknown>
-
editorInterface: { get: any; getMany: any; update: any }
-
get: function
-
getMany: function
-
update: function
-
Parameters
-
-
-
Optional headers: Record<string, unknown>
-
entry: { archive: any; create: any; createWithId: any; delete: any; get: any; getMany: any; patch: any; publish: any; references: any; unarchive: any; unpublish: any; update: any }
-
archive: function
-
Type parameters
Parameters
-
create: function
-
Type parameters
Parameters
-
createWithId: function
-
Type parameters
Parameters
-
delete: function
-
Parameters
Returns Promise<any>
-
get: function
-
Type parameters
Parameters
-
-
Optional rawData: unknown
-
Optional headers: Record<string, unknown>
-
getMany: function
-
Type parameters
Parameters
-
patch: function
-
Type parameters
Parameters
-
-
rawData: OpPatch[]
-
Optional headers: Record<string, unknown>
-
publish: function
-
Type parameters
Parameters
-
references: function
-
unarchive: function
-
Type parameters
Parameters
-
unpublish: function
-
Type parameters
Parameters
-
update: function
-
Type parameters
Parameters
-
-
-
Optional headers: Record<string, unknown>
-
environment: { create: any; createWithId: any; delete: any; get: any; getMany: any; update: any }
-
create: function
-
Parameters
-
-
-
Optional headers: Record<string, unknown>
-
createWithId: function
-
Parameters
-
params: OptionalDefaults<GetSpaceEnvironmentParams & { sourceEnvironmentId?: undefined | string }>
-
-
Optional headers: Record<string, unknown>
-
delete: function
-
Parameters
Returns Promise<any>
-
get: function
-
getMany: function
-
update: function
-
Parameters
-
-
-
Optional headers: Record<string, unknown>
-
environmentAlias: { createWithId: any; delete: any; get: any; getMany: any; update: any }
-
createWithId: function
-
Parameters
-
-
-
Optional headers: Record<string, unknown>
-
delete: function
-
Parameters
Returns Promise<any>
-
get: function
-
getMany: function
-
update: function
-
Parameters
-
-
-
Optional headers: Record<string, unknown>
-
extension: { create: any; createWithId: any; delete: any; get: any; getMany: any; update: any }
-
create: function
-
Parameters
-
-
-
Optional headers: Record<string, unknown>
-
createWithId: function
-
Parameters
-
-
-
Optional headers: Record<string, unknown>
-
delete: function
-
Parameters
Returns Promise<any>
-
get: function
-
getMany: function
-
update: function
-
Parameters
-
-
-
Optional headers: Record<string, unknown>
-
locale: { create: any; delete: any; get: any; getMany: any; update: any }
-
create: function
-
Parameters
-
-
-
Optional headers: Record<string, unknown>
-
delete: function
-
Parameters
Returns Promise<any>
-
get: function
-
getMany: function
-
update: function
-
Parameters
-
-
-
Optional headers: Record<string, unknown>
-
organization: { get: any; getAll: any }
-
get: function
-
getAll: function
-
organizationInvitation: { create: any; get: any }
-
create: function
-
Parameters
-
params: OptionalDefaults<{ organizationId: string }>
-
-
Optional headers: Record<string, unknown>
-
get: function
- get(params: OptionalDefaults<{ invitationId: string; organizationId: string }>, headers?: Record<string, unknown>): Promise<OrganizationInvitationProps>
-
Parameters
-
params: OptionalDefaults<{ invitationId: string; organizationId: string }>
-
Optional headers: Record<string, unknown>
-
organizationMembership: { delete: any; get: any; getMany: any; update: any }
-
delete: function
-
Parameters
Returns Promise<any>
-
get: function
-
getMany: function
-
update: function
-
Parameters
-
-
-
Optional headers: Record<string, unknown>
-
personalAccessToken: { create: any; get: any; getMany: any; revoke: any }
-
create: function
-
Parameters
-
-
Optional headers: Record<string, unknown>
-
get: function
-
Parameters
-
params: OptionalDefaults<{ tokenId: string }>
-
getMany: function
-
revoke: function
-
Parameters
-
params: OptionalDefaults<{ tokenId: string }>
-
previewApiKey: { get: any; getMany: any }
-
get: function
-
Parameters
-
params: OptionalDefaults<GetSpaceParams & { previewApiKeyId: string }>
-
getMany: function
-
raw: { delete: any; get: any; getDefaultParams: any; http: any; patch: any; post: any; put: any }
-
delete: function
- delete<T>(url: string, config?: AxiosRequestConfig): Promise<T>
-
Type parameters
Parameters
-
url: string
-
Optional config: AxiosRequestConfig
Returns Promise<T>
-
get: function
- get<T>(url: string, config?: AxiosRequestConfig): Promise<T>
-
Type parameters
Parameters
-
url: string
-
Optional config: AxiosRequestConfig
Returns Promise<T>
-
getDefaultParams: function
-
http: function
- http<T>(url: string, config?: AxiosRequestConfig): Promise<T>
-
Type parameters
Parameters
-
url: string
-
Optional config: AxiosRequestConfig
Returns Promise<T>
-
patch: function
- patch<T>(url: string, payload?: any, config?: AxiosRequestConfig): Promise<T>
-
Type parameters
Parameters
-
url: string
-
Optional payload: any
-
Optional config: AxiosRequestConfig
Returns Promise<T>
-
post: function
- post<T>(url: string, payload?: any, config?: AxiosRequestConfig): Promise<T>
-
Type parameters
Parameters
-
url: string
-
Optional payload: any
-
Optional config: AxiosRequestConfig
Returns Promise<T>
-
put: function
- put<T>(url: string, payload?: any, config?: AxiosRequestConfig): Promise<T>
-
Type parameters
Parameters
-
url: string
-
Optional payload: any
-
Optional config: AxiosRequestConfig
Returns Promise<T>
-
release: { create: any; delete: any; get: any; publish: any; query: any; unpublish: any; update: any; validate: any }
-
create: function
-
delete: function
-
Parameters
Returns Promise<void>
-
get: function
-
publish: function
-
query: function
-
unpublish: function
-
update: function
-
validate: function
-
releaseAction: { get: any; queryForRelease: any }
-
get: function
-
queryForRelease: function
-
role: { create: any; createWithId: any; delete: any; get: any; getMany: any; update: any }
-
create: function
-
Parameters
-
-
-
Optional headers: Record<string, unknown>
-
createWithId: function
-
Parameters
-
params: OptionalDefaults<GetSpaceParams & { roleId: string }>
-
-
Optional headers: Record<string, unknown>
-
delete: function
- delete(params: OptionalDefaults<GetSpaceParams & { roleId: string }>): Promise<any>
-
Parameters
Returns Promise<any>
-
get: function
-
getMany: function
-
update: function
-
Parameters
-
params: OptionalDefaults<GetSpaceParams & { roleId: string }>
-
-
Optional headers: Record<string, unknown>
-
scheduledActions: { create: any; delete: any; get: any; getMany: any; update: any }
-
create: function
-
delete: function
-
get: function
-
Parameters
-
params: OptionalDefaults<GetSpaceParams> & { environmentId: string; scheduledActionId: string }
-
getMany: function
-
update: function
-
Parameters
-
params: OptionalDefaults<GetSpaceParams & { scheduledActionId: string; version: number }>
-
-
snapshot: { getForContentType: any; getForEntry: any; getManyForContentType: any; getManyForEntry: any }
-
getForContentType: function
-
getForEntry: function
-
Type parameters
Parameters
-
getManyForContentType: function
-
getManyForEntry: function
-
Type parameters
Parameters
-
space: { create: any; delete: any; get: any; getMany: any; update: any }
-
create: function
- create(params: OptionalDefaults<{ organizationId?: undefined | string }>, payload: Omit<SpaceProps, "sys">, headers?: Record<string, unknown>): Promise<any>
-
Parameters
-
params: OptionalDefaults<{ organizationId?: undefined | string }>
-
payload: Omit<SpaceProps, "sys">
-
Optional headers: Record<string, unknown>
Returns Promise<any>
-
delete: function
-
Parameters
Returns Promise<any>
-
get: function
-
getMany: function
-
update: function
-
Parameters
-
-
-
Optional headers: Record<string, unknown>
-
spaceMember: { get: any; getMany: any }
-
get: function
-
getMany: function
-
spaceMembership: { create: any; createWithId: any; delete: any; get: any; getForOrganization: any; getMany: any; getManyForOrganization: any; update: any }
-
create: function
-
Parameters
-
-
-
Optional headers: Record<string, unknown>
-
createWithId: function
-
Parameters
-
-
-
Optional headers: Record<string, unknown>
-
delete: function
-
Parameters
Returns Promise<any>
-
get: function
-
getForOrganization: function
-
getMany: function
-
getManyForOrganization: function
-
update: function
-
Parameters
-
-
-
Optional headers: Record<string, unknown>
-
tag: { createWithId: any; delete: any; get: any; getMany: any; update: any }
-
createWithId: function
-
delete: function
- delete(params: OptionalDefaults<GetTagParams>, version: number): Promise<any>
-
Parameters
Returns Promise<any>
-
get: function
-
getMany: function
-
update: function
-
Parameters
-
params: OptionalDefaults<GetTagParams>
-
-
Optional headers: Record<string, unknown>
Returns Promise<TagProps>
-
task: { create: any; delete: any; get: any; getAll: any; update: any }
-
create: function
-
Parameters
-
-
-
Optional headers: Record<string, unknown>
-
delete: function
-
Parameters
Returns Promise<void>
-
get: function
-
getAll: function
-
update: function
-
Parameters
-
-
-
Optional headers: Record<string, unknown>
-
team: { create: any; delete: any; get: any; getMany: any; getManyForSpace: any; update: any }
-
create: function
-
Parameters
-
-
-
Optional headers: Record<string, unknown>
Returns Promise<any>
-
delete: function
-
Parameters
Returns Promise<any>
-
get: function
-
getMany: function
-
getManyForSpace: function
-
update: function
-
Parameters
-
-
-
Optional headers: Record<string, unknown>
-
teamMembership: { create: any; delete: any; get: any; getManyForOrganization: any; getManyForTeam: any; update: any }
-
create: function
-
Parameters
-
-
-
Optional headers: Record<string, unknown>
-
delete: function
-
Parameters
Returns Promise<any>
-
get: function
-
getManyForOrganization: function
-
getManyForTeam: function
-
update: function
-
Parameters
-
-
-
Optional headers: Record<string, unknown>
-
teamSpaceMembership: { create: any; delete: any; get: any; getForOrganization: any; getMany: any; getManyForOrganization: any; update: any }
-
create: function
-
Parameters
-
params: OptionalDefaults<GetSpaceParams & { teamId: string }>
-
-
Optional headers: Record<string, unknown>
-
delete: function
-
Parameters
Returns Promise<any>
-
get: function
-
getForOrganization: function
-
getMany: function
-
getManyForOrganization: function
-
update: function
-
Parameters
-
-
-
Optional headers: Record<string, unknown>
-
upload: { create: any; delete: any; get: any }
-
create: function
- create(params: OptionalDefaults<GetSpaceParams>, data: { file: string | ArrayBuffer | Stream }): Promise<any>
-
Parameters
-
-
data: { file: string | ArrayBuffer | Stream }
-
file: string | ArrayBuffer | Stream
Returns Promise<any>
-
delete: function
- delete(params: OptionalDefaults<GetSpaceParams & { uploadId: string }>): Promise<any>
-
Parameters
Returns Promise<any>
-
get: function
- get(params: OptionalDefaults<GetSpaceParams & { uploadId: string }>): Promise<any>
-
Parameters
Returns Promise<any>
-
usage: { getManyForOrganization: any; getManyForSpace: any }
-
getManyForOrganization: function
-
Parameters
-
params: OptionalDefaults<{ organizationId: string } & QueryParams>
-
getManyForSpace: function
-
Parameters
-
params: OptionalDefaults<{ organizationId: string } & QueryParams>
-
user: { getCurrent: any; getForOrganization: any; getForSpace: any; getManyForOrganization: any; getManyForSpace: any }
-
getCurrent: function
-
Type parameters
Parameters
Returns Promise<T>
-
getForOrganization: function
-
getForSpace: function
-
getManyForOrganization: function
-
getManyForSpace: function
-
webhook: { create: any; delete: any; get: any; getCallDetails: any; getHealthStatus: any; getMany: any; getManyCallDetails: any; update: any }
-
create: function
-
Parameters
-
-
-
Optional headers: Record<string, unknown>
-
delete: function
-
Parameters
Returns Promise<any>
-
get: function
-
getCallDetails: function
-
getHealthStatus: function
-
getMany: function
-
getManyCallDetails: function
-
update: function
PlainOptions
Plain
Options: { actionId: string; environmentId: string; plainClient: PlainClientAPI; releaseId: string; spaceId: string }
Type declaration
-
actionId: string
-
environmentId: string
-
-
releaseId: string
-
spaceId: string
PreviewApiKeyProps
Preview
ApiKeyProps: { description: string; name: string; sys: MetaSysProps }
Type declaration
-
description: string
-
name: string
-
ReleaseActionStatuses
ReleaseActionStatuses: "created" | "inProgress" | "failed" | "succeeded"
ReleaseActionSysProps
Type declaration
-
-
createdBy: Link<"User">
-
environment: Link<"Environment">
-
id: string
-
release: Link<"Release">
-
space: Link<"Space">
-
-
type: "ReleaseAction"
-
ReleaseActionTypes
ReleaseActionTypes: "publish" | "unpublish" | "validate"
ReleaseSysProps
Release
SysProps: { createdAt: ISO8601Timestamp; createdBy: Link<"User">; environment: Link<"Environment">; id: string; lastAction?: Link<"ReleaseAction">; space: Link<"Space">; type: "Release"; updatedAt: ISO8601Timestamp; updatedBy: Link<"User">; version: number }
Type declaration
-
-
createdBy: Link<"User">
-
environment: Link<"Environment">
-
id: string
-
Optional lastAction?: Link<"ReleaseAction">
-
space: Link<"Space">
-
type: "Release"
-
-
updatedBy: Link<"User">
-
version: number
RestAdapterParams
RestAdapterParams: CreateHttpClientParams & { accessToken: CreateHttpClientParams["accessToken"]; host?: undefined | string; hostUpload?: undefined | string }
RoleProps
Role
Props: { description?: undefined | string; name: string; permissions: { ContentDelivery: string[] | string; ContentModel: string[]; EnvironmentAliases: string[] | string; Environments: string[] | string; Settings: string[] | string; Tags: string[] | string }; policies: { actions: ActionType[] | "all"; constraint: ConstraintType; effect: string }[]; sys: BasicMetaSysProps & { space: SysLink } }
Type declaration
-
Optional description?: undefined | string
-
name: string
-
permissions: { ContentDelivery: string[] | string; ContentModel: string[]; EnvironmentAliases: string[] | string; Environments: string[] | string; Settings: string[] | string; Tags: string[] | string }
-
ContentDelivery: string[] | string
-
ContentModel: string[]
-
EnvironmentAliases: string[] | string
-
Environments: string[] | string
-
Settings: string[] | string
-
Tags: string[] | string
-
policies: { actions: ActionType[] | "all"; constraint: ConstraintType; effect: string }[]
-
SchedulableActionType
SchedulableActionType: "publish" | "unpublish"
SchedulableEntityType
SchedulableEntityType: "Entry" | "Asset" | "Release"
ScheduledActionApi
ScheduledActionApi: { delete: any; update: any }
Type declaration
-
delete: function
-
update: function
ScheduledActionProps
Type declaration
-
-
-
Optional environment?: undefined | { sys: MetaLinkProps }
-
-
scheduledFor: { datetime: ISO8601Timestamp; timezone?: undefined | string }
-
-
Optional timezone?: undefined | string
-
ScheduledActionSysProps
Type declaration
-
-
Optional canceledBy?: SysLink
-
-
-
id: string
-
-
-
type: "ScheduledAction"
-
-
updatedBy: Link<"User">
-
version: number
SnapshotProps
Snapshot
Props<T>: { snapshot: T; sys: MetaSysProps & { snapshotEntityType: string; snapshotType: string } }
Type parameters
Type declaration
-
snapshot: T
-
sys: MetaSysProps & { snapshotEntityType: string; snapshotType: string }
SpaceProps
Space
Props: { name: string; sys: BasicMetaSysProps & { organization: { sys: { id: string } } } }
TagApi
TagApi: { delete: any; update: any }
Type declaration
-
delete: function
-
update: function
TagCollectionProps
Tag
CollectionProps: { items: TagProps[]; sys: { type: "Array" }; total: number }
Type declaration
-
-
sys: { type: "Array" }
-
total: number
TagVisibility
TagVisibility: "private" | "public"
TaskApi
TaskApi: { delete: any; update: any }
Type declaration
-
delete: function
-
update: function
TaskProps
Task
Props: { assignedTo: Link<"User" | "Team">; body: string; dueDate?: undefined | string; status: TaskStatus; sys: TaskSysProps }
Type declaration
-
assignedTo: Link<"User" | "Team">
-
body: string
-
Optional dueDate?: undefined | string
-
-
TaskStatus
TaskStatus: "active" | "resolved"
TaskSysProps
Task
SysProps: Pick<BasicMetaSysProps, "id" | "version" | "createdAt" | "createdBy" | "updatedAt" | "updatedBy"> & { environment: SysLink; parentEntity: Link<"Entry">; space: SysLink; type: "Task" }
TeamMembershipProps
Type declaration
-
admin: boolean
-
organizationMembershipId: string
-
TeamProps
Team
Props: { description: string; name: string; sys: MetaSysProps & { memberCount: number; organization: { sys: MetaLinkProps } } }
UpdateWebhookProps
Update
WebhookProps: SetOptional<Except<WebhookProps, "sys">, "headers" | "name" | "topics" | "url">
UsageMetricEnum
UsageMetricEnum: "cda" | "cma" | "cpa" | "gql"
UsageProps
Usage
Props: { dateRange: { endAt: string; startAt: string }; metric: UsageMetricEnum; sys: MetaSysProps & { organization?: undefined | { sys: MetaLinkProps } }; unitOfMeasure: string; usage: number; usagePerDay: {} }
Type declaration
-
dateRange: { endAt: string; startAt: string }
-
endAt: string
-
startAt: string
-
-
-
unitOfMeasure: string
-
usage: number
-
usagePerDay: {}
UserProps
User
Props: { 2faEnabled: boolean; activated: boolean; avatarUrl: string; confirmed: boolean; cookieConsentData: string; email: string; firstName: string; lastName: string; signInCount: number; sys: BasicMetaSysProps }
Type declaration
-
2faEnabled: boolean
-
activated: boolean
-
avatarUrl: string
-
confirmed: boolean
-
cookieConsentData: string
-
email: string
-
firstName: string
-
lastName: string
-
signInCount: number
-
WebhookCallDetailsProps
Type declaration
-
errors: any[]
-
eventType: string
-
-
requestAt: string
-
-
responseAt: string
-
statusCode: number
-
-
url: string
WebhookCallDetailsSys
Webhook
CallDetailsSys: Except<BasicMetaSysProps, "version" | "updatedAt" | "updatedBy">
WebhookCallRequest
WebhookCallRequest: { body: string; headers: {}; method: string; url: string }
Type declaration
-
body: string
-
headers: {}
-
method: string
-
url: string
WebhookCalls
WebhookCalls: { healthy: number; total: number }
Type declaration
-
healthy: number
-
total: number
WebhookHeader
WebhookHeader: { key: string; secret?: undefined | false | true; value: string }
Type declaration
-
key: string
-
Optional secret?: undefined | false | true
-
value: string
WebhookHealthSys
Webhook
HealthSys: Except<BasicMetaSysProps, "version" | "updatedAt" | "updatedBy" | "createdAt">
WebhookProps
Type declaration
-
-
-
Optional httpBasicPassword?: undefined | string
-
Optional httpBasicUsername?: undefined | string
-
name: string
-
-
topics: string[]
-
-
url: string
WebhookTransformation
WebhookTransformation: { body?: JsonValue; contentType?: null | "application/vnd.contentful.management.v1+json" | "application/vnd.contentful.management.v1+json; charset=utf-8" | "application/json" | "application/json; charset=utf-8" | "application/x-www-form-urlencoded" | "application/x-www-form-urlencoded; charset=utf-8"; includeContentLength?: boolean | null; method?: null | "POST" | "GET" | "PUT" | "PATCH" | "DELETE" }
Type declaration
-
Optional body?: JsonValue
-
Optional contentType?: null | "application/vnd.contentful.management.v1+json" | "application/vnd.contentful.management.v1+json; charset=utf-8" | "application/json" | "application/json; charset=utf-8" | "application/x-www-form-urlencoded" | "application/x-www-form-urlencoded; charset=utf-8"
-
Optional includeContentLength?: boolean | null
-
Optional method?: null | "POST" | "GET" | "PUT" | "PATCH" | "DELETE"
Variables
Const DEFAULTS_SETTINGS
DEFAULTS_SETTINGS: { Asset: object; Assets: object; Boolean: object; Date: object; Entries: object; Entry: object } = {Boolean: {falseLabel: 'No',helpText: null,trueLabel: 'Yes',},Date: {helpText: null,ampm: '24',format: 'timeZ',},Entry: {helpText: null,showCreateEntityAction: true,showLinkEntityAction: true,},Asset: {helpText: null,showCreateEntityAction: true,showLinkEntityAction: true,},Entries: {helpText: null,bulkEditing: false,showCreateEntityAction: true,showLinkEntityAction: true,},Assets: {helpText: null,showCreateEntityAction: true,showLinkEntityAction: true,},} as const
Type declaration
-
Asset: object
-
helpText: null
-
showCreateEntityAction: true
-
showLinkEntityAction: true
-
Assets: object
-
helpText: null
-
showCreateEntityAction: true
-
showLinkEntityAction: true
-
Boolean: object
-
falseLabel: "No"
-
helpText: null
-
trueLabel: "Yes"
-
Date: object
-
ampm: "24"
-
format: "timeZ"
-
helpText: null
-
Entries: object
-
bulkEditing: false
-
helpText: null
-
showCreateEntityAction: true
-
showLinkEntityAction: true
-
Entry: object
-
helpText: null
-
showCreateEntityAction: true
-
showLinkEntityAction: true
Const DEFAULT_EDITOR_ID
DEFAULT_EDITOR_ID: "default-editor" = "default-editor"
Const DEFAULT_INITIAL_DELAY_MS
DEFAULT_INITIAL_DELAY_MS: 1000 = 1000
Const DEFAULT_MAX_RETRIES
DEFAULT_MAX_RETRIES: 30 = 30
Const DEFAULT_RETRY_INTERVAL_MS
DEFAULT_RETRY_INTERVAL_MS: 2000 = 2000
Const DROPDOWN_TYPES
DROPDOWN_TYPES: string[] = ['Text', 'Symbol', 'Integer', 'Number', 'Boolean']
Const EntryConfiguration
Entry
Configuration: { name: string; widgetId: string; widgetNamespace: WidgetNamespace }[] = [DefaultEntryEditor, ReferencesEntryEditor, TagsEditor]
Const FIELD_TYPES
FIELD_TYPES: ("Asset" | "Entry" | "Boolean" | "Symbol" | "Number" | "Text" | "RichText" | "Integer" | "Date" | "Object" | "Location" | "File" | "Symbols" | "Entries" | "Assets")[] = Object.keys(INTERNAL_TO_API) as Array<keyof typeof INTERNAL_TO_API>
Const INTERNAL_TO_API
INTERNAL_TO_API: { Asset: object; Assets: object; Boolean: object; Date: object; Entries: object; Entry: object; File: object; Integer: object; Location: object; Number: object; Object: object; RichText: object; Symbol: object; Symbols: object; Text: object } = {Symbol: { type: 'Symbol' },Text: { type: 'Text' },RichText: { type: 'RichText' },Integer: { type: 'Integer' },Number: { type: 'Number' },Boolean: { type: 'Boolean' },Date: { type: 'Date' },Location: { type: 'Location' },Object: { type: 'Object' },File: { type: 'File' },Entry: { type: 'Link', linkType: 'Entry' },Asset: { type: 'Link', linkType: 'Asset' },Symbols: { type: 'Array', items: { type: 'Symbol' } },Entries: { type: 'Array', items: { type: 'Link', linkType: 'Entry' } },Assets: { type: 'Array', items: { type: 'Link', linkType: 'Asset' } },} as const
Type declaration
-
Asset: object
-
linkType: "Asset"
-
type: "Link"
-
Assets: object
-
type: "Array"
-
items: object
-
linkType: "Asset"
-
type: "Link"
-
Boolean: object
-
Date: object
-
Entries: object
-
type: "Array"
-
items: object
-
linkType: "Entry"
-
type: "Link"
-
Entry: object
-
linkType: "Entry"
-
type: "Link"
-
File: object
-
Integer: object
-
Location: object
-
Number: object
-
Object: object
-
RichText: object
-
Symbol: object
-
Symbols: object
-
type: "Array"
-
items: object
-
Text: object
Const SidebarAssetConfiguration
Sidebar
AssetConfiguration: { description: string; name: string; widgetId: string; widgetNamespace: WidgetNamespace }[] = [Publication, Releases, Links, Translation, Users]
Const SidebarEntryConfiguration
Sidebar
EntryConfiguration: { description: string; name: string; widgetId: string; widgetNamespace: WidgetNamespace }[] = [Publication,Releases,Tasks,ContentPreview,Links,Translation,Versions,Users,]
A comment that describes this bundle