Type Definitions
The types
module provides type definitions for the Postiva API.
Prop | Type | Default |
---|
apiKey
| string
| - |
workspaceId
| string
| - |
options
| PostivaClientOptions
| - |
Prop | Type | Default |
---|
debug
| boolean
| - |
Prop | Type | Default |
---|
id
| string
| - |
title
| string
| - |
type
| string
| - |
createdAt
| string
| - |
updatedAt
| string
| - |
tags
| string[]
| - |
categories
| ContentCategory[]
| - |
publishedBy
| ContentPublishedBy
| - |
description
| string
| - |
publishedAt
| string
| - |
slug
| string
| - |
thumbnail
| string
| - |
body
| string
| - |
html
| string
| - |
seoTitle
| string
| - |
seoDescription
| string
| - |
seoThumbnail
| string
| - |
readingStatus
| ContentReadingStatus
| - |
analytics
| ContentAnalytics
| - |
Prop | Type | Default |
---|
role
| string
| - |
user
| { name: string; email: string; image: string; }
| - |
Prop | Type | Default |
---|
id
| string
| - |
name
| string
| - |
description
| string
| - |
createdAt
| string
| - |
updatedAt
| string
| - |
Prop | Type | Default |
---|
id
| string
| - |
slug
| string
| - |
title
| string
| - |
description
| string
| - |
tags
| string
| - |
thumbnail
| string
| - |
createdAt
| string
| - |
publishedBy
| ContentPublishedBy
| - |
publishedAt
| string
| - |
readingStatus
| ContentReadingStatus
| - |
type
| ContentStatusEnum
| - |
Prop | Type | Default |
---|
views
| number
| - |
likes
| number
| - |
comments
| number
| - |
shares
| number
| - |
claps
| number
| - |
Prop | Type | Default |
---|
page
| number
| - |
limit
| number
| - |
total
| number
| - |
totalPages
| number
| - |
Prop | Type | Default |
---|
data
| Content
| - |
Prop | Type | Default |
---|
data
| Content
| - |
pagination
| IPagination
| - |